Using the Memoization Technique

You want to improve the performance of a code used to calculate the factorial of a number using memoization. In the given context, which of the following will be increased while doing so?

1. Time complexity

2. Space complexity

Options
  1. Only 1
  2. Only 2
  3. Both 1 and 2
  4. Neither 1 nor 2

Related Posts