Loading practice questions
Find the maximum sub-array sum for the following array: {3, 6, 7, 9, 3, 8}
Correct Answer: B — 36
Explanation:
All the elements of the array are positive. So, the maximum sub-array sum is equal to the sum of all the elements, which is 36.