mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-06 22:05:54 +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
0ea8df7682
commit
71776e7802
@ -193,7 +193,9 @@ def update_header(node_to_test: TreeNode, target_node: TreeNode) -> TreeNode:
|
|||||||
while node_to_test.node_link is not None:
|
while node_to_test.node_link is not None:
|
||||||
node_to_test = node_to_test.node_link
|
node_to_test = node_to_test.node_link
|
||||||
if node_to_test.node_link is None:
|
if node_to_test.node_link is None:
|
||||||
node_to_test.node_link = TreeNode(target_node.name, target_node.count, node_to_test)
|
node_to_test.node_link = TreeNode(
|
||||||
|
target_node.name, target_node.count, node_to_test
|
||||||
|
)
|
||||||
# Return the updated node
|
# Return the updated node
|
||||||
return node_to_test
|
return node_to_test
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user