Problem 864 · Hard

Shortest Path to Get All Keys

BFS over (row, column, key bitmask) states until every key has been collected.

Open the interactive visualisation