We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ff295 commit dc809bfCopy full SHA for dc809bf
1 file changed
Python/scramble-string.py
@@ -47,7 +47,7 @@ class Solution:
47
def isScramble(self, s1, s2):
48
if not s1 or not s2 or len(s1) != len(s2):
49
return False
50
- if not s1:
+ if s1 == "":
51
return True
52
result = [[[False for j in xrange(len(s2))] for i in xrange(len(s1))] for n in xrange(len(s1) + 1)]
53
for i in xrange(len(s1)):
0 commit comments