Maximum circular sum

what is the difference in maximum circular sum and maximum subarray sum and why do we need to invert the elements in maximum circular sum

@aavaigrocks2001 in max circular sum first and last element are connected (think of it as a circle ) no find max subarray sum in that circle.
hope its clear if yes dont forget to hit like and mark resolved :smiley:

can you please elaborate it more i didn’t understand it well

@aavaigrocks2001
10 -100 1 2 this is the array.
so if you consider a circle 1 2 10 is a subarray in circle so max sum 13

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.