Question DSA-BST-0019
HardWhich property does a red-black tree guarantee?
- A.
Every node has two children
- B.
All leaves are at the same depth
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Binary Search Trees question
Which property does a red-black tree guarantee?
Every node has two children
All leaves are at the same depth
Sign up free to see the answer and a step-by-step explanation.
The tree is complete
The longest root-to-leaf path is at most twice the shortest