SumSlide · strategies
Endpoints first.
The split points are determined by cumulative sums — a small running total instantly narrows where dividers can go.
Prefix sums
The first target tells you what the first segment sums to. Scan from the left: the moment the running total hits the target, that's the only valid split point for the first divider.
Suffix sums
Same logic from the right: the last target constrains the last segment. Lock both ends and the middle has fewer options.
Process of elimination
With endpoints locked, the middle tiles are a smaller subproblem. Apply the same prefix/suffix trick recursively.
Ambiguity check
If two prefix sums both hit a target (e.g. 3+6=9 and 3+6+0=9), the uniqueness guarantee means the OTHER constraints (column / later targets) will resolve it. Check both and discard the one that breaks a later target.