Problem 847 · Hard
Breadth-first search over (visited-set bitmask, current node) states.
Open the interactive visualisation