Grid Teleportation Traversal
A breadth-first search over (cell, used portal letters) states, where a teleport costs no move and each letter is used once.
A breadth-first search over (cell, used portal letters) states, where a teleport costs no move and each letter is used once.