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.
Look at the last example in the kata's description again. Your code returns -1 when the expected answer is 0.
Documentation suggests that package
slices
is only available since version 1.21, but only 1.20 is available at the moment. So, don't import unsupported packages.He asks to give the "next" bigger integer, according to this example, after 2017 (using the same numbers we have) the next bigger integer is 2071 which we get by changing the last 2.
The task is to return next bigger number with the same digits, not the biggest number with the same digits.