Skip to content

Commit dc809bf

Browse files
committed
Update scramble-string.py
1 parent d8ff295 commit dc809bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/scramble-string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Solution:
4747
def isScramble(self, s1, s2):
4848
if not s1 or not s2 or len(s1) != len(s2):
4949
return False
50-
if not s1:
50+
if s1 == "":
5151
return True
5252
result = [[[False for j in xrange(len(s2))] for i in xrange(len(s1))] for n in xrange(len(s1) + 1)]
5353
for i in xrange(len(s1)):

0 commit comments

Comments
 (0)