Description
Feature description
There is a recursive implementation of 0-1 knapsack problem. The idea is to enhance it with code optimization and feature extension.
- Optimize the recursion with memorization (DP) which reduces the complexity to O(KN).
- Implement knapsack algorithm which gives the option to allow the items been repetitively picked multiple times, i.e, either 0-1 or 0-N knapsack problem.