Topic is not clearly taught

there is no clarity in the topic , there is no base for Beginners to understand the topic pls provide with a Brief Description about the the topic ,

hi @suryansh771 a simple nested loop has been used, is there anything particular you did not understand?

what is meant by cummulative sum and whats the flow of the code ,pls privide the flowchart

@suryansh771 cumulative sum means that we add the all the elements that have occured until now
like for array
1 2 3 4 5
cumulative sum will be:
1 3 6 10 15

at each step, csum[i] = csum[i-1] + arr[i]

The flow of control can be understood from the program also, try to do a dry run once using pen and paper. Did you understand maximum subarray 1? Its just a small extension of that.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.