Min/Max Subarry
Given an integer arraynums
, find the contiguous subarray (containing at least one number) which has the smallest/largest sum and return its sum.
Follow-up
circular case
totalSum - min = max
totalSum - max = min
Last updated