Notes
This function is in beta test. Please help improve it in the issues
here.
Traceback (most recent call last): File "Dijkstra.py", line 80, in <module> print(Dijkstra(graph, start, goal)) File "Dijkstra.py", line 53, in Dijkstra v = heap.extractMin() File "/out/package/fibonacci.py", line 181, in extractMin self.consolidate() File "/out/package/fibonacci.py", line 159, in consolidate self.minNode = min([u for u in rankNode if u != None], key=lambda x: x.key) if self.nodeCount > 0 else None ValueError: min() arg is an empty sequence
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
JOJ Answer
['39', '180', '50', '108', '168', '176']