Posted 2018-03-29Updated 2023-03-14zh / programing / book read / algorithmsa few seconds read (About 63 words)0 visits《算法导论》笔记3-13红黑树旋转:1234567891011121314left_rotate(T, root) rChild = root.right root.right = rChild.left if rChild.left != T.null rChild.left.parent = root rChild.parent = root.parent if root.parent == T.null T.root = rChild elif root == root.parent.left root.parent.left = rChild else root.parent.right = rChild rChild.left = root root.parent = rChild插入:《算法导论》笔记3-13https://zoctan.github.io/2018/03/29/zh/programing/book_read/algorithms/introduction_to_algorithms/3-13/AuthorZoctanPosted on2018-03-29Updated on2023-03-14Licensed under