Minimum Subarray Sum — Solution & Editorial
Kadane with min instead of max (equivalently negate everything and run the maximum version).
Complexity: O(N)
Kadane with min instead of max (equivalently negate everything and run the maximum version).
Complexity: O(N)