2218. Paths in Maze That Lead to Same Room

Medium
Graph

Description

Hints

Hint 1
If the path starts at room i, what properties must the other two rooms in the cycle have?
Hint 2
The other two rooms must be connected to room i, and must be connected to each other.

Statistics

Acceptance
56.3%
Submissions
11,098
Accepted
6,248