Closed OccupyMars2025 closed 5 months ago
tion_generated_by_AI/Chapter_13_Red_Black_Trees/rotation_insertion_deletion$ make python rm -rf ./graphviz # mypy --check-untyped-defs rotation_insertion_deletion.py python rotation_insertion_deletion.py Inorder Traversal of the Red-Black Tree: (20, BLACK) (63, BLACK) (67, BLACK) (91, RED)
None
self.nil
right_rotate
# if y.p is None: # y is root if y.p is self.nil: # y is root
buggy code: https://github.com/OccupyMars2025/Introduction-to-Algorithms-4th-Edition/commit/45bfb7e1a9c95c86d9ed23b17965b2a91fd49ec5