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.
me too jomo
the length of the solution is n. pascalsTriangle(n) returns an array of length n
I see
description updated
you should use an initial solution code snippet
This comment is hidden because it contains spoiler information about the solution
Just take a look at JS values comparison, man:)
It's impossible to do in O(n) since the length of the result is O(n^2).
fastest != best != best practice
But people can always create their own linked list and copy everything to that with the same effect.
RAM is quite cheap now...