Memoization Solution for Knapsack 0-1

interview-questions
programming
Tags: #<Tag:0x00007f182664b320> #<Tag:0x00007f182664b140>

#1

I used memoization and my solution gives time limit exceeded. Can anyone tell me why what is wrong with the top-down approach?