What normalization does Valid Palindrome usually require?
Practice this question from Valid Palindrome - Two pointers Pattern Practice Quiz, with options and an explanation.
Question
What normalization does Valid Palindrome usually require?
Option A — Correct answer
Ignore non-alphanumeric characters and lowercase letters
Option B
Sort the whole string
Option C
Remove only vowels
Option D
Keep punctuation as mandatory matches
Explanation
Ignore non-alphanumeric characters and compare lowercase characters.