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

Автор Titan493ASST, история, 14 месяцев назад, По-английски
  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
14 месяцев назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

Maintain distance vector of n*1000 size like u maintained a visited vector .. Visited vector has no use , Link My submission for reference

»
14 месяцев назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

See it like this speed and node are two changing parameters in priority queue so we need to memoise both of them .. Like a case where u reach a particular node but with a different bicycle ( u are using visited vector for that ..but it could be possible we are coming there with a better ans than before) .. another parameter slowness factor of bike is not accounted in ur distance vector