Some doubt regarding the kadanes algorithm

What’s wrong if we write if(cs‹=0)
{
cs=0
}

Hey @Tiwary725 There is nothing wrong in using this statement. The only reason we are discarding cs<0 or cs<=0 is because those elements would never contribute for the future elements.
I hope your doubt is cleared and if so please kindly mark the doubt as resolved.

Sir can I get your phone number so that I could call you and get this doubt cleared ?
Please help me… I am an average student but I want to work hard

Sir can I get your phone number so that I could call you and get this doubt cleared ?
Please help me… I am an average student but I want to work hard.

Okay no problem ,just message me using the personal chat option on the platform.

Where will I get personal chat option?

Please check your inbox