1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the space complexity of Kadane’s...
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

Discussion