Available question text
Given a target string and a list of words with costs, repeatedly append any word to an initially empty string (paying its cost) to exactly build the target and return the minimum total cost or -1 if impossible. The core challenge is computing the minimum cost to reach each target prefix (a DP/shortest-path over prefixes, with efficient word matching required for large inputs).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3213. Construct String with Minimum Cost
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source