filmov
tv
Find the number of rooms in a grid using depth-first search in C++
![preview_player](https://i.ytimg.com/vi/RZAbS1DYO5E/maxresdefault.jpg)
Показать описание
This tutorial shows you how to count the number of rooms (connected components) in a grid (graph) using a depth-first search in C++.
Be sure to like, comment, and subscribe!
Adapted from CSES:
Be sure to like, comment, and subscribe!
Adapted from CSES: