1.

What is the space complexity of the above dynamic programming implementation of the assembly line scheduling problem?(a) O(1)(b) O(n)(c) O(n^2)(d) O(n^3)This question was posed to me by my college professor while I was bunking the class.My question comes from Assembly Line Scheduling topic in division Dynamic Programming of Data Structures & Algorithms II

Answer»

Right ANSWER is (b) O(n)

The explanation is: The SPACE COMPLEXITY of the above dynamic programming implementation of the assembly line scheduling problem is O(n).



Discussion

No Comment Found

Related InterviewSolutions