Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 752. Open the Lock
Find the minimum number of single-digit rotations to change the 4-wheel lock from "0000" to the target (each digit 0–9 wraps around), while avoiding given deadend codes that block states; return -1 if unreachable. Core challenge: shortest-path search in an implicit 10^4-state graph with forbidden nodes (BFS/bidirectional-BFS pattern).
Asked at:
Meta
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid September, 2025
Meta
Senior
Late April, 2025
Meta
Mid-level
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.