What is the time 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 time complexity of the above dynamic programming implementation of the assembly line scheduling problem is O(n).
