mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 23:11:09 +00:00
changed rigt->right, a typo fix.
This commit is contained in:
parent
dc5e86b701
commit
ab058ab0b5
|
@ -8,7 +8,7 @@ class Node:
|
||||||
def __init__(self, label):
|
def __init__(self, label):
|
||||||
self.label = label
|
self.label = label
|
||||||
self.left = None
|
self.left = None
|
||||||
self.rigt = None
|
self.right = None
|
||||||
|
|
||||||
def getLabel(self):
|
def getLabel(self):
|
||||||
return self.label
|
return self.label
|
||||||
|
@ -23,10 +23,10 @@ class Node:
|
||||||
self.left = left
|
self.left = left
|
||||||
|
|
||||||
def getRight(self):
|
def getRight(self):
|
||||||
return self.rigt
|
return self.right
|
||||||
|
|
||||||
def setRight(self, right):
|
def setRight(self, right):
|
||||||
self.rigt = right
|
self.right = right
|
||||||
|
|
||||||
|
|
||||||
class BinarySearchTree:
|
class BinarySearchTree:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user