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.
Are you sure ?
the random tests randomly generate words + sentences out of those words
(I hope I understood you correctly)
Basically, the problem is in the grey part.
Hope you have fun!
I guess my reading comprehension is just shit then.
Excuse me? The story is extremely relevant to the solution.
But, it's a puzzle.
The story isn't exactly relevant to the solution. Try looking at the test cases and formulate your solution based on the input and the expected result.Sure. It works like a memorator, so like a dictionary which stores all the recent values of the fib(n) function. So it auto-memorize all the values until the maxsize is reached(for example, if maxsize==100, it will memorize the last 100 values). If maxsize is None, it will store them until no memory is left. A similar example is a dictionary. Basically, after you calculate fib(3)=2, fib(3) will be in the memory, so next time when you need fib(3) (fib(4)=fib(3)+fib(2)), you already know it from the cache.
You can check functools library on Python documentation for all the details (https://docs.python.org/3/library/functools.html) or you can search on google more about memoization.