What is the time complexity of the divide and conquer algorithm used to find the maximum sub-array sum?
(a) O(n)
(b) O(logn)
(c) O(nlogn)
(d) O(n^2)
The question was posed to me by my school principal while I was bunking the class.
The question is from Maximum Sum of Continuous Subarray topic in chapter Dynamic Programming of Data Structures & Algorithms II