Problem 3213 · Hard

Construct String with Minimum Cost

Find the cheapest way to build each prefix of the target from the words, reusing words as needed.

Open the interactive visualisation