Which of the following properties is true for Red-Black trees?

Practice Questions

1 question
Q1
Which of the following properties is true for Red-Black trees?
  1. Every node is either red or black
  2. The root must be red
  3. All leaves are black
  4. Both A and C

Questions & Step-by-step Solutions

1 item
Q
Q: Which of the following properties is true for Red-Black trees?
Solution: In Red-Black trees, every node is either red or black, and all leaves (NIL nodes) are black, ensuring balanced properties.
Steps: 0

Related Questions

Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely