problem link:
Discuss: in this problem you can simply use dijksta and solve it. jut loop through 1 to n and call dijkstra every time.if distant of exit node is less or equal then timer then make count increase. there is no tricky part in this problem.
try yourself , before see the code
Discuss: in this problem you can simply use dijksta and solve it. jut loop through 1 to n and call dijkstra every time.if distant of exit node is less or equal then timer then make count increase. there is no tricky part in this problem.
try yourself , before see the code