Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- T1, T2, T3 and T4 are subtrees.
- z y
- / \ / \
- y T4 Right Rotate (z) x z
- / \ - - - - - - - - -> / \ / \
- x T3 T1 T2 T3 T4
- / \
- T1 T2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement