红黑树删除

情形1

  1. Node to delete has two children.Find the largest node in left subtree
  2. Copy largest value of left subtree into node to delete
  3. Remove node whose value was copied
  4. Coloring child of deleted node black
  5. Double black node has black sibling,is a right child,and its left nephew is red.One rotation can fix double-blackness
  6. Single rotation Right
    红黑树删除
    红黑树删除