flood fill
RU: заливка (flood fill)
BFS or DFS run on a grid to visit every cell of a connected region, named after paint-bucket tools that spread color across it. It is used to count or mark regions such as islands.
RU: заливка (flood fill)
BFS or DFS run on a grid to visit every cell of a connected region, named after paint-bucket tools that spread color across it. It is used to count or mark regions such as islands.