Skip to content

Commit 8667167

Browse files
authoredMay 3, 2020
Update check-if-a-string-can-break-another-string.py
1 parent 16aa2a2 commit 8667167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Python/check-if-a-string-can-break-another-string.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ def checkIfCanBreak(self, s1, s2):
5353
:rtype: bool
5454
"""
5555
s1, s2 = sorted(s1), sorted(s2)
56-
return all(a >= b for a, b in izip(s1, s2)) or \
57-
all(a <= b for a, b in izip(s1, s2))
56+
return all(a >= b for a, b in itertools.izip(s1, s2)) or \
57+
all(a <= b for a, b in itertools.izip(s1, s2))

0 commit comments

Comments
 (0)
Please sign in to comment.