- Difficulty: Medium
- Tags: LeetCode, Medium, Hash Table, String, Backtracking, leetcode-267, O(n * n!), O(n), 🔒
Problem
Given a string s, return all the palindromic permutations (without duplicates) of it.
You may return the answer in any order. If s
has no palindromic permutation, return an empty list.
Â
Example 1:
Input: s = "aabb" Output: ["abba","baab"]
Example 2:
Input: s = "abc" Output: []
Â
Constraints:
1 <= s.length <= 16
s
consists of only lowercase English letters.