6 kyu
A man, a plan, a canal, Panama!
239chunjef
Description:
Implement a function that determines whether a string is a palindrome. A palindrome is a sequence of characters that reads the same backward or forward.
Assume that the empty string is a palindrome. Any character in a nonempty input string that is not alphanumeric (use the isAlphaNum
function) will be ignored. Letter case is ignored as well.
Examples of input strings that produce a result of True:
- "Star rats"
- "elite ti le"
- "noon"
- "Poor Dan is...in a droop!"
- "89#8"
- " dffd " (notice the leading and trailing whitespaces)
Note: Unlike another palindrome kata, this kata doesn't forbid the use of standard language functions that reverse a list.
Fundamentals
Strings
Similar Kata:
Stats:
Created | Jan 13, 2015 |
Published | Jan 13, 2015 |
Warriors Trained | 585 |
Total Skips | 40 |
Total Code Submissions | 657 |
Total Times Completed | 239 |
Haskell Completions | 239 |
Total Stars | 4 |
% of votes with a positive feedback rating | 96% of 69 |
Total "Very Satisfied" Votes | 65 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 37 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |