1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. Kadane’s algorithm is used to find
Q.

Kadane’s algorithm is used to find

A. longest increasing subsequence
B. longest palindrome subsequence
C. maximum sub-array sum
D. longest decreasing subsequence
Answer» C. maximum sub-array sum
Explanation: kadane’s algorithm is used to find the maximum sub-array sum for a given array.

Discussion