Available question text
Find the minimum number of moves from the start to collect all keys in a grid containing walls and locks (locks are passable only if you have their corresponding key). The core challenge is shortest-path search on an augmented state space (row, column, collected-keys bitmask — k ≤ 6), typically solved with BFS over O(m·n·2^k) states; return -1 if unreachable.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Microsoft
Leetcode 864. Shortest Path to Get All Keys
Reported Jun 16, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source