Palindrome Permutation - Problem Statement
Determine if a permutation of a given string S
can form a palindrome.
Example:
Input:
string S = "aab"
Output:
"True"
Explanation:
The permutation "aba" of the string "aab" is a palindrome.
Constraints:
1 <= T <= 10
1 <= Length of the given string <= 105
- All characters in the strings are lowercase English alphabets.
- Time Limit: 1sec
Note:
You do not need to print anything; just implement the given function.

AnswerBot
4mo
Check if a permutation of a string can form a palindrome.
Create a frequency map of characters in the string.
Count the number of characters with odd frequencies.
If there is at most one character with a...read more
Help your peers!
Add answer anonymously...
HashedIn by Deloitte Software Developer Intern interview questions & answers
A Software Developer Intern was asked Q. Design a Movie Player system
A Software Developer Intern was asked Q. Ways To Make Coin Change Given an infinite supply of coins of varying denominati...read more
A Software Developer Intern was asked Q. Binary Palindrome Check Given an integer N, determine whether its binary represe...read more
Popular interview questions of Software Developer Intern
A Software Developer Intern was asked Q1. Design a Movie Player system
A Software Developer Intern was asked Q2. Ways To Make Coin Change Given an infinite supply of coins of varying denominati...read more
A Software Developer Intern was asked Q3. Binary Palindrome Check Given an integer N, determine whether its binary represe...read more
>
HashedIn by Deloitte Software Developer Intern Interview Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

