Problem 2707 · Medium
Find the fewest leftover characters by choosing where dictionary words end in each prefix.
Open the interactive visualisation