LEETCODE
UNLOCKED
Problems
Donate
Premium
Path Existence Queries in a Graph I
Solution Code
Time Complexity
O(
N + Q
)
Space Complexity
O(
N
)