Problem 3552 · Medium

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.

Open the interactive visualisation