more rotations

This commit is contained in:
Rafael 2017-07-06 21:13:56 +02:00
parent 0b7d3a5c97
commit f65fe8c858

View File

@ -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)