← Goldman Sachs questions
CodingReported in a candidate post, Nov 2020

Maximum Subarray Sum with One Deletion

Filed under Goldman Sachs

Given an array of integers, return the maximum sum of a non-empty subarray after optionally deleting at most one element.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.