Everything right, yet getting TLE in graph problem!

Revision en1, by code_warrior, 2020-07-06 17:47:01

I tried my lot to debug why my code for the probem "Beautiful Graph" ig giving me a TLE. I have just used dfs .PLease someone reply if one can help me out! This is the problem . This is my code!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English code_warrior 2020-07-06 17:47:01 356 Initial revision (published)