Q.

What is the space complexity of Kadane’s algorithm?

A. o(1)
B. o(n)
C. o(n2)
D. none of the mentioned
Answer» A. o(1)
Explanation: kadane’s algorithm uses a constant space. so, the space complexity is
1.3k
0
Do you find this helpful?
17

Discussion

No comments yet