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

What is the space complexity of the divide and conquer algorithm used to find the maximum sub-array sum?

A. o(n)
B. o(1)
C. o(n!)
D. o(n2)
Answer» B. o(1)
Explanation: the divide and conquer algorithm uses a constant space. so, the space complexity is o(1).

Discussion