Notes
This function is in beta test. Please help improve it in the issues
here.
Traceback (most recent call last): File "Dijkstra.py", line 273, in <module> graph_result = dijkstra(graph, start, target) File "Dijkstra.py", line 222, in dijkstra min_vertex_name, min_vertex_value, fb_minnode = graph_heap.extract_min() File "Dijkstra.py", line 58, in extract_min self.consolidate() File "Dijkstra.py", line 101, in consolidate while array[degree] is not None: IndexError: list index out of range
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']