Skip to content

Commit 5dbe20b

Browse files
authored
Update LongestCommonPrefix.java
1 parent 0fb33a5 commit 5dbe20b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/thealgorithms/strings/LongestCommonPrefix.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.thealgorithms.strings;
22

3+
import java.util.Arrays;
4+
35
public final class LongestCommonPrefix {
46
public String longestCommonPrefix(String[] strs) {
57
if(strs == null || strs.length == 0) return "";

0 commit comments

Comments
 (0)