← Microsoft questions
CodingMedium

Open the Lock (minimum turns with deadends)

Filed under Microsoft

You have a lock with 4 circular wheels, each showing a digit 0-9. The wheels can rotate freely and wrap around (9 -> 0 and 0 -> 9). The lock starts at '0000'. In one move you turn one wheel one slot…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.