Skip to content

Latest commit

 

History

History

palindromeRearranging

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Palindrome rearranging

hashMap hashSet medium

Given a string, find out if its characters can be rearranged to form a palindrome.

Example

For inputString = "aabb", the output should be solution(inputString) = true.

We can rearrange "aabb" to make "abba", which is a palindrome.