Infosys, Recently Asked Online Assessments in September, 2026 | Next Palindrome | Strings & Math

Infosys · Question · Posted Jun 2026

Question 1: Next Palindrome Problem Statement Given a number N, find the least palindromic number K, such that K > N. Input Format The first line of input contains T - the number of test cases. It's followed by T lines, each containing a single number N. Output Format Print the least palindromic number K for each test case, such that K > N, separated by a new line. Constraints 1 <= T <= 105 1 <= N <= 109 ...

The full answer & interview discussion are available to premium members.

Log in Create a free account