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.
You are right, I totally misunderstood. Thank you!
Then you get the same result in your IDE and here, there is a problem with your code, because, you can see the next bigger number you can form with the digits of 144 is indeed 414.
This is the input "Test.assertEquals(nextBigger(144),414)" , and on my IDE if I test with '144' I get '-1' . Do you think there is an error on the testing from the kata ? or am I missing something ?
Pretty sure you're misreading the logs, read this: https://docs.codewars.com/training/troubleshooting/#print-input
based on that error I assume that the input is '414' and I tested and got '441'.
Print the input, what was it?
This comment is hidden because it contains spoiler information about the solution