Skip to content

Commit 28cc8cb

Browse files
committed
Update palindrome-permutation-ii.cpp
1 parent 1bd01b7 commit 28cc8cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

C++/palindrome-permutation-ii.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ class Solution {
2424
}
2525
chars.append(kvp.second / 2, kvp.first);
2626
}
27-
27+
return permuteUnique(mid, chars);
28+
}
29+
30+
vector<string> permuteUnique(const string& mid, string& chars) {
2831
vector<string> result;
2932
sort(chars.begin(), chars.end());
3033
do {

0 commit comments

Comments
 (0)