Rosetta Problems

Path Existence Queries in a Graph I

https://leetcode.com/problems/path-existence-queries-in-a-graph-i