Блог пользователя Just_LOL

Автор Just_LOL, история, 5 месяцев назад, По-английски

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.

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится