Search⌘ K
AI Features

Open the Lock

Open the Lock starts at "0000" and asks for the fewest one-wheel turns to reach a target combination while avoiding blocked deadend positions, or return -1 if unreachable.

Statement

You are given a lock with  ...