Challenge: Maximum Subarray
Try to solve the Maximum Subarray problem.
We'll cover the following...
Statement
Given an unsorted array nums
, find the sum of the maximum sum subarray. The maximum sum subarray is an array of contiguous elements in nums
for which the sum of the elements is maximum.
Constraints:
nums.length
nums[i]
Examples
Access this course and 1400+ top-rated courses and projects.