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 65, 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

32
8
0    1    3    5    7    2    4    6     
0    3    0    0    0    5    6    0     
3    0    9    2    0    0    0    7     
0    9    0    5    0    0    0    9     
0    2    5    0    2    9    0    2     
0    0    0    2    0    0    2    1     
5    0    0    9    0    0    3    8     
6    0    0    0    2    3    0    4     
0    7    9    2    1    8    4    0     

JOJ Answer

['1', '5', '7', '4']