Is this Kadane’s ALgorithm? what if the entire array is full of negative numbers and we are given to find maximum array sum. Confusing video.
Kadane's Algorithm
yes, you correctly pointed out that this would not work for all negative valued array
The below code could help u get the logic clear
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.