Loading…
Loading…
Given a string, determine if it is a palindrome after converting all uppercase letters to lowercase and removing all non-alphanumeric characters.
Print true or false.
Input: A man, a plan, a canal: Panama
Output: true
Two pointers from both ends, skipping non-alphanumeric characters, comparing lowercased characters until they meet in the middle.
Input (stdin)
Output
Input (stdin)
Output
Sign in to track solved problems and earn XP.
No discussions yet
Be the first to start a conversation.