On checking from custom input I am getting the answers

test cases are going wrong

@ayushkatiyar139 just take 2 cases

  1. use kadane algorithm
  2. find a subarary which is minimum and you can skipp it and then take the rest part
    then take the max of these 2 parts
    it will work fine if issue still exists let me know

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.