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.
No, it's not about finding the largest permutation. It's about finding the next one which is larger than the current.
I thougthI understood the question , but the test don't seem to be clear , If we are supposed to rearange all the number and compare if the input is greater than all the possible permitation, please explain me this
12 ==> 21 = > Ok
513 ==> 531 => OK
2017 ==> 2071 => shouldn't 7210 ??