[leetcode] dfs