Ad
  • Custom User Avatar

    I will be waiting for your feedback after my update

  • Custom User Avatar

    I ran your code through my tests and saw a shortcoming on my end with the tests. I will fix it.
    Thx for issue!

  • Custom User Avatar

    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?

  • Custom User Avatar

    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 with null, undefined, or <empty item>.

    Is there anything else you'd like to add?

  • Custom User Avatar

    Okay, I can rework the task.

  • Custom User Avatar

    I have described the advantages of the method and where it can be used.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Although both tasks involve memoization, the focus and intent behind each task are different:

    1. Your task is specifically designed to test memoization in the context of recursive functions, with an emphasis on currying to handle multiple arguments.
    2. My task, however, is designed to create a generic memoization function that can handle any function, regardless of whether it's recursive or not, and can work seamlessly with any number of arguments. This broadens the applicability and reusability of the memoization technique.
  • Custom User Avatar

    Fixed