LeetCode
Reachable Nodes In Subdivided Graph
Click
here
for an explanation.