ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
For which of the following inputs would Kadane's algorithm produce a WRONG output?
Correct Answer: B — {-1,-2,-3}
Kadane's algorithm doesn't work for all negative numbers. So, the answer is {-1,-2,-3}.