Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 251 Bytes

File metadata and controls

10 lines (6 loc) · 251 Bytes

Problem

Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form.

For example:

Given s = "aabb", return ["abba", "baab"].

Given s = "abc", return [].