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 helped a lot. Thanks. Haha
This comment is hidden because it contains spoiler information about the solution
Yeah, this needs memoization. Lots of repeated calculations. Super inefficient.
Agreed, I remember reading that somewhere -- but why? because of the lambda function, right?
It's all about reading and learning. All those wheels are out there, no need to reinvent them.
Why not though?
Have you seen the sample tests?
The first one is an empty list. And that's what the error is about.
Have you tested it in your IDE with an empty list?
I second this.
People should stop voting random stuff as best practice just becouse the code is short and nice. There's the 'clever' button for that.
Best practice is something else.
same
Please use code formatting when posting code.
It is not obsolete, it can be useful in some cases. This code was probably written a long time ago.
If tests don't check for that kind thing then why care what description says? :) In my opinion Kata description is just an instruction or a "hint".