在图像处理或游戏开发中,泛洪(flood fill)算法既可以用 BFS 实现,也可以用 DFS 实现。
flood fill
BFS
DFS
{{ select(1) }}
不区分大小写,点击图片可更换