Question: What is the space complexity of the dynamic programming solution for the 0/1 Knapsack problem using a 2D array?
Options:
Correct Answer: O(n * w)
Solution:
The space complexity of the dynamic programming solution for the 0/1 Knapsack problem using a 2D array is O(n * w), where n is the number of items and w is the maximum weight.