Problem 3788 · Medium

Maximum Score of a Split

Split nums into a nonempty prefix and suffix. The score is the prefix sum minus the smallest suffix value; keep the best split.

Open the interactive visualisation