← back to unit
Challenge
# puzzle gauntlet advanced
Almost a Mirror
The picky mirror accepts words that ARE mirrors — and grudgingly, words that would be if you deleted exactly one letter. 🥈
You get a word. Print mirror, almost (one deletion fixes it), or not even close. Hint: write a helper that mirror-checks any piece, and call it after skipping the troublemaker.
Example:
Input: word = "abca"
Output: almost
Comparing ends, a = a matches, then b vs c mismatches. Deleting c leaves "aba", which IS a mirror — one deletion fixes it.
💡 need a hint?
pg-almost-mirror.py🔒 given lines are locked — write your code in between
loading...