Skip to content

Commit 4cef784

Browse files
committed
lint
1 parent 2cac9e5 commit 4cef784

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

solutions/1071/01.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ def gcdOfStrings(self, str1: str, str2: str) -> str:
44
# This is necessary for a common divisor to exist
55
if str1 + str2 != str2 + str1:
66
return ""
7-
7+
88
# Find GCD of lengths using Euclidean algorithm
99
def gcd(a, b):
1010
while b:
1111
a, b = b, a % b
1212
return a
13-
13+
1414
# The GCD string will have length equal to GCD of the two string lengths
1515
gcd_len = gcd(len(str1), len(str2))
16-
16+
1717
# Return the prefix of length gcd_len
1818
return str1[:gcd_len]

0 commit comments

Comments
 (0)