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 bd28f7a commit b045ccaCopy full SHA for b045cca
1 file changed
Python/palindrome-permutation-ii.py
@@ -21,7 +21,7 @@ def permuteUnique(self, nums):
21
22
def permuteRecu(self, result, used, cur, nums):
23
if len(cur) == len(nums):
24
- result.append(cur + [])
+ result.append(''.join(cur))
25
return
26
for i in xrange(len(nums)):
27
if not used[i] and not (i > 0 and nums[i-1] == nums[i] and used[i-1]):
0 commit comments