krishna kumar.s wrote:I used some logic and it did not work out , if I use biginteger "TLE" error occurs. So please let me know a logic...
I'm afraid that's not how it works here. Why don't you show us what you've tried and
precisely what errors you're getting (I have no idea what a 'TLE' error is) - cut and paste the stacktrace if you need to.
My suspicion is that you might not need BigInteger though, since the entire process (including "incrementing") can probably be done with the String - or maybe even better, a
char[].
Hint:
chars in
Java are
numeric.
Interesting little problem though.
Winston