How can i solve tle error.
code- https://pastebin.com/hg7i7Ywz
TLE problem for testcase 2&3
You have two recursive calls, And see the constraints n can be up to 90, So you can’t goes up to 2^90.
Use memoization to reduce your time complexity.
how to use memoization in it. please explain