1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the space complexity of the foll...
Q.

What is the space complexity of the following dynamic programming implementation used to find the minimum number of jumps?

A. o(1)
B. o(n)
C. o(n2)
D. o(5)
Answer» B. o(n)
Explanation: the space complexity of the above dynamic programming implementation is o(n).

Discussion