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
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