⚡ Self-Balancing Trees

AVL Tree Monster

Watch the AVL tree auto-balance with LL, RR, LR, RL rotations — live balance factors and rotation history.

🔵
0
Nodes
📐
0
Height
🔄
0
Rotations
YES
Balanced
AVL SELF-BALANCING TREE
Rotation History
No rotations yet — insert values to see self-balancing

Rotation Log

Insert nodes and watch the AVL tree auto-balance itself.
Rotation Predictor 0
Predict which rotation will occur next!
❤️❤️❤️

🔄 Rotation Types

LL (Right): Left-heavy, single right rotation
RR (Left): Right-heavy, single left rotation
LR (Left-Right): Two rotations needed
RL (Right-Left): Two rotations needed

⚡ AVL Complexity

Insert O(log n)
Delete O(log n)
Search O(log n)
Height O(log n)*