Question DSA-ARR-0070
HardWhat does Kadane's algorithm return for an array where every element is negative (in the version that tracks max(x, cur + x))?
- A.
0
- B.
The sum of all elements
- C.
Sign up free to see the answer and a step-by-step explanation.