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.
Ah I navigated away too quickly. Please check now.
Sorry, new here - just published it!
This comment is hidden because it contains spoiler information about the solution
Note for anyone looking at this, I should have used a strongly-typed comparator:
This is nitpicky, but for TypeScript, a function signature of the following would make more sense:
This appropriately enforces the tuple being returned, as opposed to a
number[]
type that won't have element count enforced.Edit: Here's a fork.
This comment is hidden because it contains spoiler information about the solution