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).
3.2k
0
Do you find this helpful?
23

Discussion

No comments yet