You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// yeh kadane's algo par based hai that is iska concept hai ki agar koi positive number aur negative number add ho aur unka sum postive aaye to usse hum lekr chalenge but agr unka addition negative aaye to use drop kardo(0 kardo). And oviously if all are positive to koi prob nhi hai because net to positive hi aayega.