Just_LOL's blog

By Just_LOL, history, 6 weeks ago, In English

Problem link I used dijkstra's algorithm and when I get a new bicycle with minimum slowness factor or when I reached a city with minimum time I updated the distance array. This was my submission. But it didn't work. I saw many people use 2d distance array. But I can't figure out the intuition? Could you explain me the intuition. If there is any other way to do this could you comment that one too.

  • Vote: I like it
  • 0
  • Vote: I do not like it