Skip to content

Create RBT.cpp#2469

Open
sanath-Sunkad wants to merge 1 commit intoOpenGenus:masterfrom
sanath-Sunkad:patch-3
Open

Create RBT.cpp#2469
sanath-Sunkad wants to merge 1 commit intoOpenGenus:masterfrom
sanath-Sunkad:patch-3

Conversation

@sanath-Sunkad
Copy link
Contributor

Red-Black Tree is a self-balancing Binary Search Tree (BST) where every node follows following rules.
RedBlackTree

  1. Every node has a color either red or black.

  2. Root of tree is always black.

  3. There are no two adjacent red nodes (A red node cannot have a red parent or red child).

  4. Every path from root to a NULL node has same number of black nodes.

fixed issue #672
Changes:
[Add here what changes were made in this pull request.]

Red-Black Tree is a self-balancing Binary Search Tree (BST) where every node follows following rules.
RedBlackTree
1) Every node has a color either red or black.

2) Root of tree is always black.

3) There are no two adjacent red nodes (A red node cannot have a red parent or red child).

4) Every path from root to a NULL node has same number of black nodes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments