|
An LL rotation is performed when the balance factor becomes +2 n the
root. This means that the node was added on the left child of the root's
left child. In the proceeding example, node 'e' caused the balance factor
to become +2: |  |
 |
The first thing we do is find node d (because this is an LL rotation, D is
the left child of the root's left). We know that e < d < b because
of their relative positions, so we can rearange the subtree to be like
this: |
|
Now, bot b and d are less than a, so either can be the left child of
a: |  |