1.

What is the time 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 in an interview for internship.This interesting question is from Assembly Line Scheduling topic in portion Dynamic Programming of Data Structures & Algorithms II

Answer»

The CORRECT option is (b) O(n)

To EXPLAIN: The time complexity of the above dynamic programming IMPLEMENTATION of the assembly line scheduling problem is O(n).



Discussion

No Comment Found

Related InterviewSolutions