Test case not passing


test case not passing. same problem occured in the prev question

Check for this input:
1
6
1 2 5 -2 -3 5
Expected answer is 13
Yours is giving is 16.
If you aren’t able to find why answer is 13, let me know will attach explanation for same.

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.

https://ide.codingblocks.com/s/578100 not passing single test case

@jainarpit0210
change line after printing output for each test case.

1 Like

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.