Dynamic programming quiz

how is anser is 22 in question number 9??

@shampblocks multiply -2 1 -6 by -2 to get new array
-3 8 4 -2 12
now max subarray sum 8+4±2+12=22
dont forget to hit like and mark resolved if cleared :smiley:

can you send code of it??

@shampblocks here

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.