Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form.
Example
No.1
Input: s = “aabb”
Output: [“abba”,”baab”]
No.2
Input: “abc”
Output: []
Code
1 | public List<String> generatePalindromes(String s) { |