NeetCode #573LC-752MediumGraphsNC 250
← Back to All Problems#573 · #752 · Open the Lock(打开转盘锁)
📌 Problem Statement & Constraints
A lock has four circular dials with digits 0-9. Starting from
"0000", each move turns one dial one step in either direction. Given a list of deadends, return the minimum moves to reach target, or -1 if impossible. Constraints: 1 <= deadends.length <= 500, deadends[i].length == 4, target.length == 4.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!