Find the Closest Palindrome
CodingPhoneSoftware EngineerReported Sep, 2025
Company question banks are included with the Insider plan.
Given a string n representing an integer, return the closest integer (not including itself), which is a palindrome. If there is a tie, return the smaller one.
The closest is defined as the absolute...