6 kyu

A man, a plan, a canal, Panama!

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

More By Author:

Check out these other kata created by chunjef

Stats:

CreatedJan 13, 2015
PublishedJan 13, 2015
Warriors Trained585
Total Skips40
Total Code Submissions657
Total Times Completed239
Haskell Completions239
Total Stars4
% of votes with a positive feedback rating96% of 69
Total "Very Satisfied" Votes65
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes1
Total Rank Assessments37
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • chunjef Avatar
  • suic Avatar
  • solitude Avatar
Ad