tags::
type:: Leetcode_Solution
in:: Algorithms MOC

just a graph traversal algo