Page 1 of 1

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

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