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.
I will be waiting for your feedback after my update
I ran your code through my tests and saw a shortcoming on my end with the tests. I will fix it.
Thx for issue!
Your function starts caching only after the 25th call. In our task, caching should start from the first call.
Your function does not consider the maximum cache size. The task requires automatic removal of the least recently used entries when the cache size exceeds the specified limit
Your function does not manage the time-to-live (TTL) for cached entries. The task requires that entries expire and are removed from the cache after the specified TTL.
Perhaps I misunderstood your expectations and you were looking for a different response from me. How else can I assist you?
Thanks for the feedback.
I'll update the advice to mention that JSON.stringify
can be used
(i agree it's not the optimal solution), and I'll clarify that there are no tests withnull
,undefined
, or<empty item>
.Is there anything else you'd like to add?
Okay, I can rework the task.
I have described the advantages of the method and where it can be used.
It's difficult to deny that our tasks are similar as they both utilize the memoization mechanism. However, my task is focused on universality, making the memoization function applicable to any function with any number of arguments. Your task, on the other hand, is focused on optimizing performance specifically for recursive functions.
Although both tasks involve memoization, the focus and intent behind each task are different:
Fixed