Skip to content

Commit 02b212d

Browse files
authored
Update tree.py
1 parent 16ad748 commit 02b212d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

height_of_tree/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self):
1313
self.root = None
1414

1515
def create(self, val):
16-
if self.root == None:
16+
if self.root is None:
1717
self.root = Node(val)
1818
else:
1919
current = self.root

0 commit comments

Comments
 (0)