The maximum subarray is the task of finding a contiguous subarray with the largest sum within a given one dimentional array of numbers. Suppose the…

The maximum subarray is the task of finding a contiguous subarray with the largest sum within a given one dimentional array of numbers. Suppose the array is: A: [-2, 1, -3, -1, 2, 1, -5, 4]

From the BPDB Assistant Engineer (CSE) February 2023 – Written (BUET) exam, question 31 of 37.

More from this paper