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.
I did reset Kata right now, paste the same code again - and it works correct. Little mystery.
Anyway, it's time to work with time out by "Big_Picture" :) Nice Kata!
Well, that's weird. I'm unable to reproduce this behaviour in the C version of the kata.
Have you tried using the "Reset" button to clean up any strangeness that may have crept in?
This comment is hidden because it contains spoiler information about the solution
Thank you!
Yes. It is the next bigger number.
"Rearranging its digits" - is it about side-by-side digits only (like in all given examples)? Or is it about every digits in the number? I.e. is "2107" correct output for "2071" incoming, or "2701" only goes right?