Which edge case should be handled?
Practice this question from Valid Palindrome - Two pointers Pattern Practice Quiz, with options and an explanation.
Question
Which edge case should be handled?
Option A — Correct answer
Only punctuation
Option B
Only sorted lowercase input
Option C
Only strings with spaces
Option D
Only length greater than ten
Explanation
A string with only punctuation should still be valid after normalization.