Skip to content

Commit b045cca

Browse files
committed
Update palindrome-permutation-ii.py
1 parent bd28f7a commit b045cca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/palindrome-permutation-ii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def permuteUnique(self, nums):
2121

2222
def permuteRecu(self, result, used, cur, nums):
2323
if len(cur) == len(nums):
24-
result.append(cur + [])
24+
result.append(''.join(cur))
2525
return
2626
for i in xrange(len(nums)):
2727
if not used[i] and not (i > 0 and nums[i-1] == nums[i] and used[i-1]):

0 commit comments

Comments
 (0)