Find the number of rooms in a grid using depth-first search in C++

preview_player
Показать описание
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:
Рекомендации по теме