Depth First Search and Breadth First Search Algorithm to Open the Doors to the Rooms with Keys March 26, 2020 algorithms, BFS, c / c++, DFS, graph No Comments There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, …, N-1, and each room may have some keys … [Continue Reading...]