Maximum subarray approach 2

is it necessary to find the range we can do this like this method also please just confirm it once

https://ide.codingblocks.com/s/593563 bro ye code bheja to hai correct krke… padho na kya likha hai and kya galti thi…hope it clears ur doubts…

check the last code I had send it to you without using range is it okay or not

just check this one is it oaky

yes… its ok…

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.

is it necessary to find the range or I can always do like that

depend on what is asked in the ques

but we cannot do that in kidanes law only in this 2nd approach the question might ask like that

yes… u are correct…

okay thanks for the help