graph problem — counting rooms

Правка en3, от moghit_ad, 2021-11-11 02:09:37

hi everyone this is my first time trying to solve a graph problem after learning a DFS algorithm i tried to solve this one on cses but it giving WA on some test cases can anyone tell me where's prob on my code ? here's my code:https://pastebin.com/5hDaJbY4

Теги dfs, bfs, graph

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский moghit_ad 2021-11-11 02:09:37 866
en2 Английский moghit_ad 2021-11-11 02:07:24 22
en1 Английский moghit_ad 2021-11-11 00:29:28 1151 Initial revision (published)