Given a number, find the smallest palindrome that is strictly larger — for example, 100 → 101 — fast enough for 18-digit inputs.
Given a number, find the smallest palindrome that is strictly larger — for example, 100 → 101 — fast enough for 18-digit inputs.
This question is free
Log in to read the full question, run your code and see the solution.
Be the first to discuss this question
Approaches, follow-up questions and how the interview went. Log in to read and join the discussion.