@[wxyidk1234](/user/728483) 自己去看
<https://www.luogu.com.cn/discuss/327478>
![](https://gcore.jsdelivr.net/gh/SteveTaizhou/steve-imgbed@main/img/Snipaste_2022-07-26_22-11-16.png)
个人觉得没必要,有很多种思路,标签只是主流做法。
by _Cppsteve_ @ 2022-07-26 22:12:56
@[wxyidk1234](/user/728483) 说一下,如果dfs没有回溯,那就和bfs几乎没区别
by Azure__ @ 2022-07-26 22:26:09
做法太多了,没必要/shq
by waauto @ 2022-07-26 22:26:30
@[Azure__](/user/565945) 哦,感谢,一直以为递归了就算dfs,原来还要回溯
by wwwidk1234 @ 2022-07-26 22:40:00