Vidyalelo
Data Structure · Q152

Dynamic Programming in Data Structures

Programming · Data Structure · question 152

Q152

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

A.
{0,1,2,3}
B.
{-1,0,1}
C.
{-1,-2,-3,0}
D.
{-4,-3,-2,-1}
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board