Problem 3010 · Easy

Divide an Array Into Subarrays With Minimum Cost I

Each subarray costs its first value, so the first element is fixed and the two smallest later values are the best starts.

Open the interactive visualisation