What is the time complexity of a dynamic programming solution to the knapsack problem?
O(2^n)
O(n^2)
O(n)
O(n log n)

Advanced Algorithms Exercises are loading ...