We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03246bf commit e90367bCopy full SHA for e90367b
Ch06. Trees and Tree Algorithms/AVLTree.py
@@ -228,7 +228,7 @@ def rotateRight(self):
228
oldRoot.parent.rightChild = newRoot
229
# set parent child relation
230
oldRoot.parent = newRoot
231
- newRoot.leftChild = oldRoot
+ newRoot.rightChild = oldRoot
232
233
# first oldRoot, then newRoot - use data from oldRoot
234
oldRoot.updateHeightAfterRotation()
0 commit comments