# avl trees rotations question

As you can see in this tree its unbalanced at the root with a balanced factor of $$-2$$. You can also perform a Right left rotation or a Right Right rotation. Which do you have to pick in this case?

• If you're following a certain algorithm, you have to pick what the algorithm specifies. Otherwise, I'm not sure what you mean by "have to". It's a free world. You don't have to do anything. If you're just looking for an operation that improves the balance factor, then you could just apply both and checks which of them works, if any. – Yuval Filmus Feb 27 '19 at 5:43
• @Tinler How about a left rotation? – John L. Feb 27 '19 at 5:45