Available question text
Given s and t, compute the minimum total cost to transform each character of s into the corresponding character of t by rotating letters on a 26-node directed cycle where the edge j->(j+1) costs nextCost[j] and j->(j-1) costs previousCost[j]; for each position, take the shortest-path cost between the two letters and sum them.
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 3361. Shift Distance Between Two Strings
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source