Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 514. Freedom Trail
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.