mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
more rotations
This commit is contained in:
parent
0b7d3a5c97
commit
f65fe8c858
|
@ -123,7 +123,9 @@ class AVL:
|
|||
node.getLeft().setHeight(node.getLeft().getHeight() - 1)
|
||||
|
||||
def double_rotate_left(self, node):
|
||||
pass
|
||||
self.rotate_right(node.getRight().getRight())
|
||||
self.rotate_left(node)
|
||||
|
||||
def double_rotate_righs(self, node):
|
||||
pass
|
||||
def double_rotate_right(self, node):
|
||||
self.rotate_left(node.getLeft().getLeft())
|
||||
self.rotate_right(node)
|
||||
|
|
Loading…
Reference in New Issue
Block a user