Find the Closest Palindrome (LeetCode 564)

Problem overview from a real Roblox interview:

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.

Check more interview questions and experiences about Roblox

Please log in to view interview details