1.

Identify the Valid red-black tree​

Answer»

Answer:

  • Each tree node is colored either red or black.
  • The ROOT node of the tree is always black.
  • Every path from the root to any of the leaf NODES MUST have the same number of black nodes.
  • No two red nodes can be ADJACENT, i.e., a red node cannot be the parent or the CHILD of another red node.


Discussion

No Comment Found