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.
This kata is currently a draft. You cannot submit to a draft, that's normal.
After Attempt with all tests passed can't Submit for a cata completition. Other catas submits normally. Language is JS.
I'd consider early return for
if v2 >= v1
condition.Not very complex computing is happening here but still better to skip computing whe it is not necessary;)
The author failed to provide a test for it, but this does not correctly return nil if v1 == v2, and instead results in an error.