Question: Given a string s , print Yes if the string can be a palindrome after rearranging the letters in the String, else No
Given a string s print "Yes" if the string can be a palindrome after rearranging the letters in the
String, else No Ignore the case.
A palindromic string is one that reads the same forwards and backwards, such as "radar" or
"level."
Input format
First line contains a string s consisting of uppercase and lowercase letters.
Output format
Print "Yes" if the string can be a palindrome after rearranging the letters in the string,
otherwise, print No
Sample Input
aAb
Sample Output
Yes
Explanation
Swapping A and b in the string will result in a palindromic string 'abA' aA as we are
ignoring the case
Sample Input
ABC
Sample Output
No
Explanation
"ABC" cannot be converted into a palindromic string.
Constraints
slength
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
