E - Reachability in Functional Graph
- Time : O(v+e)
- Space : O(v+e)
c++
1 |
|