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 can gesture with your hands when explaining, I think it will be clearer this way👐
No... 7210 is the largest value you can make with the same digits as 2017, but the task is not to find the largest value with the same digits. The task is to find the next larger value with the same digits, which is 2071. The test is not erroneous, but I'm not sure how it can be explained any further.
I got the same... actually, how does 2017 return 2071? Shouldn't it be 7210? The test seems erroneous.
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 ??