We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6f688 commit 0101dd4Copy full SHA for 0101dd4
data_structures/binary_tree/red_black_tree.py
@@ -451,7 +451,7 @@ def is_left(self) -> bool:
451
"""Returns true iff this node is the left child of its parent."""
452
if self.parent is None:
453
return False
454
- return self.parent.left is self.parent.left is self
+ return self.parent.left is self
455
456
def is_right(self) -> bool:
457
"""Returns true iff this node is the right child of its parent."""
0 commit comments