Need help with resolving TLE on Dijkstra.

Revision en1, by sky_full_of_stars, 2020-09-14 13:07:47

Hi All,

I was trying to solve this using Dijkstra.

Solution here.

I'm getting TLE in the last few test cases. Can someone suggest me any further optimizations I can make?

thanks! have a good day!

Tags dijkstra, #tle, needhelp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sky_full_of_stars 2020-09-14 13:07:47 359 Initial revision (published)