Problem 4072 · Medium

Maximum Alternating Subarray Sum With One Deletion

Track alternating sums that end on a plus or minus sign, with and without one skipped element, so the deletion shifts later signs correctly.

Open the interactive visualisation