Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MovesToUnlock ¶
MovesToUnlock returns the minimum number of moves to unlock a rotary lock avoid all dead ends. Returns -1 if it's not possible. Panics if the input data is inconsistent. Runs in O(N) or O(V+E) time since BFS is a linear algorithm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.