Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. T1, T2, T3 and T4 are subtrees.
  2. z y
  3. / \ / \
  4. y T4 Right Rotate (z) x z
  5. / \ - - - - - - - - -> / \ / \
  6. x T3 T1 T2 T3 T4
  7. / \
  8. T1 T2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement