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
- Only 1
- Only 2
- Both 1 and 2
- Neither 1 nor 2