Skip to content

Commit 5269203

Browse files
committed
style: format code
1 parent 7e39c41 commit 5269203

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎Sprint-2/improve_with_precomputing/common_prefix/common_prefix.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ def find_longest_common_prefix(strings: List[str]):
99
"""
1010
seen = set()
1111
longest = ""
12-
for string in strings:
13-
for i in range(1,len(string)+1) :
12+
for string in strings:
13+
for i in range(1, len(string) + 1):
1414
prefix = string[:i]
1515
if prefix in seen and len(prefix) > len(longest):
1616
longest = prefix
1717

1818
seen.add(prefix)
1919
return longest
20-

0 commit comments

Comments
 (0)