Notes
This function is in beta test. Please help improve it in the issues
here.
Traceback (most recent call last): File "Dijkstra.py", line 45, in <module> fibHeap.decreaseKey(heapNodeIndex[neighbor], tmp) File "/out/package/FibonacciHeap.py", line 165, in decreaseKey self.__cascadingCut(node.parent) File "/out/package/FibonacciHeap.py", line 152, in __cascadingCut if node.parent is not None: AttributeError: 'NoneType' object has no attribute 'parent'
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
['0', '113', '102', '109', '196']