Dijkstra variation problem

Revision en2, by Rehmaan_2001, 2021-12-18 14:41:38

https://www.hackerearth.com/challenges/competitive/september-clash-15/algorithm/dangerous-dungeon/description/ i have got the solution for small p by calculating dist[u][p] for every p how can we do it such that solution is independent of the value of p

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en6 English Rehmaan_2001 2023-08-06 20:03:55 333
en5 English Rehmaan_2001 2023-07-28 13:03:17 30
en4 English Rehmaan_2001 2023-07-28 13:02:09 81
en3 English Rehmaan_2001 2021-12-18 16:57:01 59
en2 English Rehmaan_2001 2021-12-18 14:41:38 11
en1 English Rehmaan_2001 2021-12-18 12:32:11 272 Initial revision (published)