Skip to content

Commit 108aa90

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 606d93c commit 108aa90

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

data_structures/binary_tree/red_black_tree.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,10 @@ def remove(self, label: int) -> RedBlackTree:
268268
elif self.right:
269269
self.right.remove(label)
270270
return self.parent or self
271-
# It's easier to balance a node with at most one child,
272-
# so we replace this node with the greatest one less than
273-
# it and remove that.
271+
# It's easier to balance a node with at most one child,
272+
# so we replace this node with the greatest one less than
273+
# it and remove that.
274+
274275
def _remove_repair(self) -> None:
275276
"""Repair the coloring after removal."""
276277
if (

0 commit comments

Comments
 (0)