Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 606 Bytes

File metadata and controls

26 lines (15 loc) · 606 Bytes

Is permutation palindrome

Nice to solve before

Instructions

Given a string, return true if the input string is an a permutation of palindrome or false if it is not. Permutation means that all letters of the string can be used to create a palindrome.

Palindromes are strings that form the same word if it is reversed.

challenge | solution

Examples

permutationPalindrome("gikig") == true

permutationPalindrome("ookvk") == true

permutationPalindrome("sows") == false

permutationPalindrome("tami") == false