Available question text
Given source and target strings and a set of weighted directed character transformations (possibly with multiple edges), find the minimum total cost to turn each source character into the corresponding target character by chaining allowed transforms, or return -1 if any position is unreachable. This reduces to computing shortest-path distances between letters (small fixed alphabet) and summing the per-position costs.
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
Microsoft
Leetcode 2976. Minimum Cost to Convert String I
Reported Apr 3, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source