Given an array, split it into $$$k$$$ disjoint consecutive blocks such that the value of $$$\sum a[i] \cdot blockIndex[i]$$$ is maximized.
I created a video discussing why the greedy strategy for this problem is not obvious. Here is the practice problem







