Hello.
I am using Dijkstra's algorithm to find the length of the shortest path from safe-point (0, 0) to safe-point (w, h). If this length is less than the given constraint I print "I am lucky!", else I print "Boom!".
However, I am getting Time Limit Exceeded. Is there a faster algorithm?
I implemented Dijkstra's algorithm using C++ STL's priority_queue.
Thanks in advance for the help!


