Cloze

Running bestMedium

Maximum Subarray

Find the largest sum of any run of one or more neighbouring numbers in nums.

Aim for O(n) time, O(1) spaceInspired by a classic interview problem ↗