Given a string s, determine whether it reads the same forward and backward after converting all uppercase letters to lowercase and removing all non-alphanumeric characters.
s = "A man, a plan, a canal: Panama"trues = "race a car"falseSolve it in the editor. Sign in free to run your Python or JavaScript against test cases, get a verdict, and track your attempts.
Solve on FeatCode →Two indices move through a sorted (or sortable) structure — often from opposite ends or at different speeds — to avoid the nested loops a brute-force scan would need.
Read the full Two Pointers guide →
Original problem on LeetCode ↗