Problem 2219 · Medium

Maximum Sum Score of Array

At each index compare the running prefix with the remaining suffix; keep the largest score.

Open the interactive visualisation