please tell me the test case for which i am getting a wrong answer.
see input #9 on this link…LINK!!!
i think it is not the correct ans…!!!
the ans should most probably be…
Your Output :
Correct Output :
see #11 also!!!
the ans should be 11000000011
agreed with @kunal361 the outputs of the case 9 and 11 are actually smaller than the input, but the “next” palindrome will be greater than the input.