Cycle Detection Doubt

Правка en1, от aman_naughty, 2019-03-23 19:34:13

Is this code to detect cycle in an undirected graph correct. I have run it on a few test cases and it seems good . Can someone from the community verify it.

code:

code
Теги #graph, #cycle, #dfs, #doubt

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский aman_naughty 2019-03-23 19:34:13 829 Initial revision (published)