mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Update data_structures/binary_tree/binary_search_tree.py
This commit is contained in:
parent
38aca4daca
commit
8212690198
@ -78,8 +78,8 @@ class Node:
|
|||||||
return pformat({f"{self.value}": (self.left, self.right)}, indent=1)
|
return pformat({f"{self.value}": (self.left, self.right)}, indent=1)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_right(self):
|
def is_right(self) -> bool:
|
||||||
return self.parent and self is self.parent.right
|
return self.parent is not None and self is self.parent.right
|
||||||
|
|
||||||
|
|
||||||
class BinarySearchTree:
|
class BinarySearchTree:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user