Help in solution of 839C — Journey

Revision en1, by the_tester_, 2019-07-24 14:03:40

My solution 57636356 to the problem 839C - Путешествие uses BFS implementation but I am getting a wrong answer on test no.4. Editorial suggests a dfs implementation which is clear enough but I want to know what went wrong in my implementation? Any ideas or sample testcases would be a great help.

Thanks in advance!!

Tags #dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English the_tester_ 2019-07-24 14:03:40 364 Initial revision (published)