Problem 2077 · Medium

Paths in Maze That Lead to Same Room

Count three-room cycles in an undirected maze.

Open the interactive visualisation