Problem 45663. Find the next binary palindrome number

We all know, a palindrome is nothing but a number or character which remains the same after the forward or backward alteration of order. 202 or "Mom" is the best example of a palindrome which remains the same as before, after the backward or forward alteration done.

However, the problem is: how will you accomplish the task of finding the next binary palindrome in an integer form as output when you are given a positive integer as input.

Example: Input=2014 and Output=2015

Solution Stats

55.0% Correct | 45.0% Incorrect
Last Solution submitted on Jun 19, 2020