PROMPT
Implement `isPalindrome(s: string): boolean` in a file named exactly
`palindrome.ts`, and write tests for it in a file named exactly
`palindrome.test.ts`.
`isPalindrome` ignores case and non-alphanumeric characters (so
"A man, a plan, a canal: Panama" is a palindrome) and treats the empty string as
a palindrome.
Write both files. Keep it small.when to use it
Community prompt sourced from the open-source GitHub repo christopherlouet/claude-base (MIT). A "PROMPT" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
christopherlouet/claude-base · MIT