What is the brute-force baseline for Valid Palindrome?
Practice this question from Valid Palindrome - Two pointers Pattern Practice Quiz, with options and an explanation.
Question
What is the brute-force baseline for Valid Palindrome?
Option A — Correct answer
Clean the string, reverse it, and compare
Option B
Use a heap
Option C
Build an adjacency list
Option D
Use binary search
Explanation
Build a cleaned string, reverse it, and compare both versions.