@@ -1,4 +1,13 @@
from typing import List
def longestCommonPrefix(strs: List[str]):
+ res = ""
+ lcs = ""
lens = len(strs)
+ for i in range(lens):
+ if len(strs[i]) < len(strs[i+1]):
+ lcs = strs[i]
+ num = i
+