Maximum circular sum
What is max circular sum and how to calculate it?
Challenges- Arrays
hello @rakesh_anand
7
8 -8 9 -9 10 -11 12
in this example
max circular sum is 12+8 -8+9-9+10=22
circular sum means after last index you again come at 0th index
so to solve this question you have to consider both the ways circular or without circular and at last take max of both
you have to use Kadane’s algorithm to solve this problem efficiently
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.