Help in solution of 839C — Journey

Правка en1, от the_tester_, 2019-07-24 14:03:40

My solution 57636356 to the problem 839C - Journey 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!!

Теги #dp

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский the_tester_ 2019-07-24 14:03:40 364 Initial revision (published)