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 comment is hidden because it contains spoiler information about the solution
What do you suggest?
Very nice but could be compressed down a bit more, but all in all, it's good!
But what will happen if null is passed? So, still good to check.
Nice catch ;)
As you are using TypeScript, you don't really need to verify if the
nums
exists. It will always be an array: empty or full. TypeScript guarantee this for us.