A palindrome is some string that is spelled the same way both backwards and forwards. For instance, 'Eva, can I stab bats in a cave?' is a palindrome (EVACANISTAB | BATSINACAVE)
For this code golf, using the language of your choice, determine if a given string is a palindrome or not.
- Punctuation is not counted towards palindrominess.
- Control characters are not counted towards palindrominess.
- Whitespace is not counted towards palindrominess.
- Numbers are counted towards palindrominess.
- Case in this challenge is not counted towards palindrominess.
- There is no limit to the length of strings to evaluate, except for what is imposed by your language of choice.
- For this challenge, limit yourself to the ASCII character set.
- Only method bodies are needed; additional things like method signatures, data structure declarations, etc. do not count towards the victory requirement.
- Code must compile or interpret without compile-time errors or exceptions.
- Code must not throw any unhandled exceptions or crash. (Almost needless to say. Almost.)
- Code must return some value indicating palindrominess. The data type depends on the language you use (e.g. a C# user might use a
- You may not write your own interpreter that performs this task as a 'native' capability so you can 'golf' a near-winning score. (Hopefully needless to say.)
- The shortest code in characters wins.
Current Leader: tmartin (k, 25 characters)
...Want the magic green check mark by your answer? Beat this guy's answer!