Data structures and algorithms
What is the largest sum of a contiguous subarray of [−2,1,−3,4,−1,2,1,−5,4]?
AppliedNumeric answer
What is the largest sum of a contiguous subarray of ?
Answer with a number. Fractions, powers and expressions like 23/6 or C(52,5) are read correctly in practice.
The worked solution is in Premium
The answer, the full working and the one idea to take away – for this and all 1,322 questions in the bank. Answer it in practice and your working is marked, with a known mistake named when you make one.
Report an issue with this question
Of the kind reported at
More data structures and algorithms questions
- Searching a sorted array, part 3 of 3Advanced · Premium
- How many comparisons does a binary search need, in the worst case, over a…Foundation · Premium
- How many non-empty contiguous subarrays does an array of length ten have?Foundation · Premium
- Searching a sorted array, part 1 of 3Foundation · Premium
- What is the length of the longest substring of "abcabcbb" with no repeated characters?Applied · Premium
- Searching a sorted array, part 2 of 3Applied · Premium