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.
the length of the solution is n. pascalsTriangle(n) returns an array of length n
Best practices? With those variable names, not really.
It's impossible to do in O(n) since the length of the result is O(n^2).
fastest != best != best practice
I think I had to. For a local variable to be captured by an anonymous inner class (and so by extension a lambda expression) it has to be final.
I like that you marked xLower as a final. I suspect this is one of those things that can help with performance.
This comment is hidden because it contains spoiler information about the solution