Sub_array_sum1 and sub_array_sum2

4 -3 2 1 -6

when i am using sub array technique 1 for this array its show maximum sum 4 and when i use 2nd technique it will show maximum sum 3
plsss clear my doubt

@Madhurmaheshwari share your ide link of your code, the answer is 4

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.