This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingCheck both invariants: no red node has a red child, and every root-to-leaf path carries the same black height.
What this asks
Check whether a tree satisfies the red-black rules.
No red node may have a red child, and every root-to-leaf path must carry the same number of black nodes.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing