what is brute force appraoch
CPP - Maximum Subarray Sum 3 (Kadane's Algo)
@khemchandrs hey khemchand their is three method we have teach you the first one the complexity of o(n^3)
and the second one is the cummulative sum method which is equal to o(n^2) and the last one is linear time complexity so this is the best method to find the subarray sum.
i asked different question see my question