Search⌘ K
AI Features

Maximum Subarray

Maximum Subarray asks you to find the contiguous subarray with the greatest sum in an integer array and return that sum, even when the array includes negative values.

Statement

Given an integer array, nums, find the contiguous subarray that has the largest sum and return its ...