Split By Spread — Puzzles: original problems

Cut a list of nightly prices into a fixed number of consecutive stays so the summed price spread within each stay is smallest, and report that sum.

Puzzles: original problems · Hard

More in Puzzles: original problems

All algorithm problems