You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Why this pattern: Finding the maximum sum contiguous subarray is the textbook use case for Kadane's algorithm, tracking a running sum and resetting it when it becomes a drag on the total.
*
* Interview Scenario:
* "Repeatedly asked in different phrasings at Amazon/Adobe: 'Find the most profitable contiguous stretch of trading days from a list of daily profit/loss values.' Tests recognition that this is the maximum subarray problem."