mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 14:13:44 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
502953aa70
commit
7b987a0dd9
|
@ -355,8 +355,7 @@ class FibonacciHeap:
|
|||
Args:
|
||||
node_to_cut (FibonacciHeapNode): The node to be cut recursively.
|
||||
"""
|
||||
temp_parent = node_to_cut.parent
|
||||
if temp_parent:
|
||||
if temp_parent := node_to_cut.parent:
|
||||
if not node_to_cut.mark:
|
||||
node_to_cut.mark = True
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user