Max circular sum question doubt


showing wrong answer

Hello @ayush15goel,

You have skipped a very small though equally important:
Run your code on the following input:
2
7
8 -8 9 -9 10 -11 12
7
8 -8 9 -9 10 -11 12

The output format of the program of your code is wrong.

Modification required:
cout<<circularSum(a,n)<<endl;

Hope, this would help.
Give a like, if you are satisfied.