Vidyalelo
Data Structure · Q215

Dynamic Programming in Data Structures

Programming · Data Structure · question 215

Q215

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

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

Answer: Option B

Solution

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