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 think users get examples like that with small numbers as well :)
Took me a moment, but I finally understood it. - You're saying if you move two numbers, you can get something that's bigger than the starting one and still smaller than if you move just one. - Should include one of those in your small number test cases, just so people don't think it's just big ones that do that...
Input is 890, then your thing switched 8 and 9 (to get 980), but he's saying you can do better, (to get 908, which is even closer to original number, i.e. smallest step).
The kata asks you for the "next", meaning the smaller after the given one to satisfy certain criteria, doesn't it?