dfs can solve