Given a string, determine if a permutation of the string could form a palindrome.
Example
No.1
Input: s = “code”
Output: False
Explanation:
No solution
No.2
Input: s = “aab”
Output: True
Explanation:
“aab” –> “aba”
No.3
Input: s = “carerac”
Output: True
Explanation:
“carerac” –> “carerac”
Code
1 | public boolean canPermutePalindrome(String s) { |