Fetching data...
This may take a moment
Back
2218. Paths in Maze That Lead to Same Room
Medium
Graph
Solve on LeetCode
View Solutions
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.
Similar Questions
Number of Connected Components in an Undirected Graph
Medium
Reachable Nodes In Subdivided Graph
Hard
Distance to a Cycle in Undirected Graph
Hard
Find if Path Exists in Graph
Easy
Statistics
Acceptance
56.3%
Submissions
11,098
Accepted
6,248