Available question text
Given a circular string ring and a target key, find the minimum steps to spell key by repeatedly rotating the ring (cost = minimal circular distance) to align any matching character at 12:00 and pressing (cost 1). The core challenge is choosing which occurrence of each key character to align (and which rotation direction), typically solved with dynamic programming or memoized DFS over ring positions.
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 514. Freedom Trail
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source