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.
Why are you returning numbers with other digits?
Your function returns
515
, the expected value was531
, the input value was513
.You're misunderstanding what to do, you have to reorder the digits of a number and get the next bigger number with those. Not pick the digits you want and make a number with the ones you choose to pick. It's even in the instructions.
Check that when you think there is a problem with the kata, when there are that many completions generally the problem is not with the kata ;)