Problem 564 · Hard

Find the Closest Palindrome

Find the closest palindrome to a given number, excluding the number itself, with ties going to the smaller value. The visual mirrors the left half, tests neighboring candidates, and compares their distances on a number line.

Open the interactive visualisation