samsidx's blog

By samsidx, 6 years ago, In English I did solve this problem using up-down approach with memoization, but memory required is 2^20. is there any memory efficient way or how to solve when value of N is increased?? The web resources are also of memory O(2^20)

  • Vote: I like it
  • -3
  • Vote: I do not like it

6 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

It uses 4MB memory

UPD : I read it wrong. Ignore.