Next higher palindrome using the same set of digits

Pranay Kumar
Jun 12 · 5 min read

Problem: We are given a number N and we have to find the smallest possible palindrome greater than N that can be formed by using the same set of digits as in N. This problem is asked in many interviews and require an understanding step-by-step approach, also have applications in other manipulation problems.

Let’s dive in!!

Table of Contents