RBT Insertion Steps
- Insert the node like Binary Search Tree
- Fix Violations after the insertion
- If the parent of the newly inserted node is black, there was no violation
- If the parent is red, the tree violates the red property and needs to be fixed
RBT Uses
Red Black Trees are self-balancing and are often used for implementing data structures such as maps and priority queues.
GeeksForGeeks RedBlackTree