Home »
MCQs »
Algorithms MCQs
For a given array, what will be the maximum contiguous array sum? int n[]={ -2, -3, 4, -1, -2, 1, 5, -3 };
50. For a given array, what will be the maximum contiguous array sum? int n[]={ -2, -3, 4, -1, -2, 1, 5, -3 };
- -1
- 10
- 7
- None of the above
Answer
The correct answer is: C) 7
Explanation