Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Information
- Show
- PublishedNovember 14, 2020 at 11:29 AM UTC
- Length2 min
- RatingClean
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.