← back to unit
Medium
# puzzle gauntlet medium
The Mirror Test, No Props
You've mirror-checked with a stack and with a deque. The final form: no extra containers at all — just two fingers walking toward each other. 🪞
You get a word. Compare the outermost letters, step both fingers inward, repeat. Print mirror or not a mirror.
Example:
Input: word = "rotator"
Output: mirror
Comparing the outer letters and stepping inward — r=r, o=o, t=t — meets in the middle with everything matching.
💡 need a hint?
pg-mirror-test.py🔒 given lines are locked — write your code in between
loading...