Maximum circular sum challenge


Please help me find the problem in this code.

Made changes in ur code:

why did we have to another variable cs3?

why did we have to use* another variable cs3?

cs3 is used to calculate total sum as cs2 will give min sum and it is subtracted from total sum to get max circular sum.

1 Like