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.
It should be noted that in the detail, m > 2.
Thank you for your attention.I also had this issue.
This fails with gap(2, 2, 6), should be null and returns [0,2].
Also @lindaxiao-hust said also fails with gap(3, 3, 4) should be null and returns [0,3]
beautiful, elegant and performant. My sol is straight up embarassing.
awesome!
This comment is hidden because it contains spoiler information about the solution
Aaaaaa thanks a lot for the explanation!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Just a heads up, this solution is entirely dependent on server execution time (the main issue with this kata). If servers are moving slow, this solution fails to complete in time. If servers are moving at a normal pace, this works.