Skip to content

Commit 3c1b061

Browse files
refactor 14
1 parent fe2a804 commit 3c1b061

File tree

1 file changed

+0
-20
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-20
lines changed

src/main/java/com/fishercoder/solutions/_14.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 14. Longest Common Prefix
5-
*
6-
* Write a function to find the longest common prefix string amongst an array of strings.
7-
*
8-
* If there is no common prefix, return an empty string "".
9-
*
10-
* Example 1:
11-
* Input: ["flower","flow","flight"]
12-
* Output: "fl"
13-
*
14-
* Example 2:
15-
* Input: ["dog","racecar","car"]
16-
* Output: ""
17-
* Explanation: There is no common prefix among the input strings.
18-
*
19-
* Note:
20-
* All given inputs are in lowercase letters a-z.
21-
*/
22-
233
public class _14 {
244

255
public static class Solution1 {

0 commit comments

Comments
 (0)