Anonymous user
Palindrome detection: Difference between revisions
task description: Remove all the unnecessary cruft (doesn't invalidate any solutions), improve formatting, and add related tasks box
(task description: Remove all the unnecessary cruft (doesn't invalidate any solutions), improve formatting, and add related tasks box) |
|||
Line 4:
[[Category:Classic CS problems and programs]]
A [[wp:Palindrome|palindrome]] is a phrase which reads the same backward and forward.
{{task heading}}
Write at a function or program that checks whether a given sequence of characters (or, if you prefer, bytes)
▲as palindrome.
'''''Optional (Extra credit) tasks:'''''
* Support Unicode strings.
* Write another function (possibly as a wrapper to the first) which detects ''inexact'' palindromes, i.e. phrases that are palindromes if white-space and punctuation is ignored.
{{task heading|Hints}}
* It might be useful for this task to know how to [[Reversing a string|reverse a string]].
* This task's entries might also form the subjects of the task [[Test a function]].
{{task heading|Related tasks}}
{{Related tasks/Word plays}}
<hr>
=={{header|ACL2}}==
|