Why my dfs code is not working...?

Revision en1, by alamin_2014, 2017-02-17 12:38:57

simple dfs code.... why is it not working? please help input : 6 1 1 6 1 2 2 3 2 5 3 4 4 5 code : http://pastebin.com/EazYw5af my code run properly when I remove printf which is out of for loop in dfs function. If I write printf function... it does not work... strange..

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English alamin_2014 2017-02-17 12:38:57 314 Initial revision (published)