Problem 664 · Hard

Strange Printer

Work out the fewest passes of a printer that lays one color across a span at a time, with later passes overwriting earlier ones. The visual shows interval splits and how overlapping spans merge.

Open the interactive visualisation