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.
Just trying to avoid the timeout by avoiding redundant calculations across many tests.
This comment is hidden because it contains spoiler information about the solution
The cache will save over time because you only run the first line of code just once, after that all the test are using by calling the function with different numbers.
Using the dict CACHE helps u jump over test you have already done in the previous so it s faster.
Chances are thinked the same way he did but by not using cache you are wasting time on useless tests.