• Permutation Palindrome
A palindrome is a word or phrase that could be spelled the same forward and backward. Examples of palindromes include the words “level” and “racecar” as well as the phrase “taco cat.”
Create a function that returns TRUE if an input string is a permutation of a palindrome — that is, if the string could somehow be rearranged to make a palindrome. For example, the strings “racecar,” “carrace,” and “gghhk” should return TRUE, while words such as “tammy” and “code” should return FALSE.
For an additional challenge, allow your input to include phrase strings. You’ll need to find a way to remove all spaces in the input string before running your function.
Solve in Language : Kotlin or Any
Let's see who can solve this first.
Join @coding_practice_questions
May 9, 2023 14.6K 2 5