GATEverse Practice, past papers & mock tests
GATE 2019
AlgorithmsDivide and ConquermediumNAT1 mark
Consider a sequence of 14 elements: A = [-5, -10, 6, 3, -1, -2, 13, 4, -9, -1, 4, 12, -3, 0]. The subsequence sum S(i, j) = Σ_{k=i}^j A[k]. Determine the maximum of S(i, j) where 0 <= i <= j < 14.
Save your progress

Related Algorithms PYQs