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).
673
0
Do you find this helpful?
1

Discussion

No comments yet