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.
Check if at most one character has an odd frequency.
If yes, return True; otherwise, return F...read more
Help your peers!
Add answer anonymously...
Hike Android Developer interview questions & answers
An Android Developer was asked 12mo agoQ. What are the different Android components and concepts such as RecyclerView, Vie...read more
An Android Developer was asked 12mo agoQ. Design and implement a Least Recently Used (LRU) cache. It should support the fo...read more
An Android Developer was asked 12mo agoQ. How would you debug and resolve a crash and ANR given a stack trace?
Popular interview questions of Android Developer
An Android Developer was asked 12mo agoQ1. What are the different Android components and concepts such as RecyclerView, Vie...read more
An Android Developer was asked 12mo agoQ2. Design and implement a Least Recently Used (LRU) cache. It should support the fo...read more
An Android Developer was asked Q3. Design an ImageDownloader that efficiently handles parallel API calls.
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

