Skip to content

Commit 7312b2d

Browse files
committed
Longest common prefix problem
1 parent 807d0da commit 7312b2d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Longest Common Prefix
2+
3+
Given a String array, find the longest common prefix.
4+
5+
## Example
6+
7+
```
8+
f([‘rocket’, ‘rockstar’, ‘rockbottom’, ‘rock’, ‘rollingstone’] // ‘ro’
9+
f([‘shuffle’, ‘shuttle’, ‘shut’] // ‘shu’
10+
```
11+
12+
## Source
13+
Personal Phone Interview

0 commit comments

Comments
 (0)