Maximum circular sum

https://online.codingblocks.com/app/player/11915/content/54857/5302/code-challenge
https://ide.geeksforgeeks.org/DyfhpcEaPj
how can i optimise as in 2 testcases it is tle

you can optimised it using kadane’s algorithm

have you studied that topic??
it is present in your course

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.