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 variable names are cheff's kiss
upon viewing other solutions I finally realized that I have mistakenly thought of "memoization" as precompute the answers according to the given size of question (due to my lack of computer science knowledge), but it seems like perhaps the correct interpretation is to update a memo list upon each function call so that each computation can be simplified; however even if that is the case, the worst case scenario is that we still need a method to compute the 250-th term even without previous calls, which still seems extremely difficult at first glance.
this sort function usage is just astounding.
this concise lambda function definition is such a compact expression of the output rule given by the question.