Problem Description
Given a string A consisting of lowercase characters.
Check if characters of the given string can be rearranged to form a palindrome.
Return 1 if it is possible to rearrange the characters of the string A such that it becomes a palindrome else return 0.
1 <= |A| <= 105
A consists only of lower-case characters.
First argument is an string A.
Return 1 if it is possible to rearrange the characters of the string A such that it becomes a palindrome else return 0.
Input 1:
A = "abcde"
Input 2:
A = "abbaee"
Output 1:
0
Output 2:
1
Explanation 1:
No possible rearrangement to make the string palindrome.
Explanation 2:
Given string "abbaee" can be rearranged to "aebbea" to form a palindrome.
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a question? Checkout Sample Codes for more details.