Leetcode doubt on hard

How can bitwise operators be implemented here??

hello @Somasree

see palindrome has following property
a) there is atmax one character that can occur odd number of times
b) rest other character must occur even number of times.

so here we can use bitwise to store this info.
if any character is occuring odd number of times then set its bit
otherwise keep it 0 (to indicate even number of times).

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.