30:00
Given an integer array nums, find the subarray with the largest sum, and return its sum.
1≤nums.length≤1051 \leq \text{nums.length} \leq 10^51≤nums.length≤105
−104≤nums[i]≤104-10^4 \leq \text{nums}[i] \leq 10^4−104≤nums[i]≤104
-2
1
-3
4
-1
2
-5