Notes
This function is in beta test. Please help improve it in the issues
here.
Traceback (most recent call last): File "Dijkstra.py", line 64, in <module> dijkstra(Dj_graph, source, sink) File "Dijkstra.py", line 36, in dijkstra heap.delete(all_vertex[search_node(all_vertex, current_vertex, graph.vertex_num)]) File "/out/package/fib.py", line 200, in delete self.extract_min() File "/out/package/fib.py", line 147, in extract_min self.consolidate() File "/out/package/fib.py", line 98, in consolidate while node_array[temp_node.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
['1', '5', '7', '4']