Question DSA-ARR-0035
EasyWhat is the maximum sum of a contiguous subarray of [−2, 1, −3, 4, −1, 2, 1, −5, 4]?
- A.
4
- B.
6
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
What is the maximum sum of a contiguous subarray of [−2, 1, −3, 4, −1, 2, 1, −5, 4]?
4
6
Sign up free to see the answer and a step-by-step explanation.
7
10