Page 1 of 1

For which of the following inputs would Kadane’s algorithm produce the INCORRECT output?

Posted: Wed Jul 13, 2022 7:40 pm
by answerhappygod
a) {0,1,2,3}
b) {-1,0,1}
c) {-1,-2,-3,0}
d) {-4,-3,-2,-1}