Ctrl K
Problem

Mirror Phrase Check

Easy · Mirror Phrase Check

Call a phrase a mirror phrase if it reads the same left to right and right to left, looking only at letters and digits and ignoring letter case. Spaces, punctuation and any other characters are skipped. Given a string `text`, return `True` if it is a mirror phrase and `False` otherwise. Try to do it without building a copy of the string, in O(1) extra memory.…

Solve the problem →