|
|
вернуться в форумПоказать все сообщения Спрятать все сообщенияBFS solution gets accepted.. but it fails in many cases. However the perfect solution to be used is Dijkstra's. The test cases do not contain cases where cycles terminate at nodes in between source and destination. |
|
|