Smallest Palindromic Number Not Less Than N

Given a decimal string n representing a non-negative integer, return the smallest palindromic number that is greater than or equal to n, as a string.

A palindrome reads the same from left to ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: