FunctionRacerProblemsRace

Palindrome Permutation

EasyHash mapsPython, JavaScript, TypeScript, Java, C++

Return True if the characters of s can be rearranged into a string that reads the same forwards and backwards, otherwise False.

Example 1

s "carrace"
returns true

It can become racecar.

Example 2

s "abc"
returns false

Three letters each used once cannot form a palindrome.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Hash maps problems