Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

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 94, in consolidate
    node_array[self.min.degree] = self.min
IndexError: list assignment 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

['3', '5', '7', '4', '2']