What is the space complexity of the above dynamic programming implementation of the assembly line scheduling problem?
O(1)
O(n)
O(n^{2})
O(n^{3})
Answer and explanation
The space complexity of the above dynamic programming implementation of the assembly line scheduling problem is O(n).
