

MCQOPTIONS
Saved Bookmarks
1. |
What is the space complexity of the above dynamic programming implementation of the Knapsack problem? |
A. | O(n) |
B. | O(n + w) |
C. | O(nW) |
D. | O(n2) |
Answer» D. O(n2) | |