Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
IMO 59884848483559 isn't correct answer. There has been similar task in code jam: https://code.google.com/codejam/contest/dashboard?c=186264#s=a&a=1.
Otherwise, please describe the algorithm.
No worries, glad that you took the pain of replying in such a kind way :)
Thanks, Giacomo, for your reply.
I misinterpreted the meaning of the message, "59884848493559 should equal 59884848483559", thinking it meant that 59884848493559 should have produced the solution, 59884848483559. That's why I concluded that the message was incorrect. Since then, I have discovered and corrected a bug in my code, which now passes all tests, and has been submitted as a solution.
Sorry about the confusion.
Guys, does anyone ever check the previous discussions? The input is
59884848459853
, then you need to return the next bigger number.Period.
Guys, does anyone ever check the previous discussions? The input is
59884848459853
, then you need to return the next bigger number.Period.
My solution received the message: 59884848493559 should equal 59884848483559
However, the proposed result, 59884848483559, is smaller than the argument, 59884848493559.
Furthermore, the proposed result does not even have the same digits as the argument.