Bifalgorithm post · Brisk · Chapter 1
Why is this not a binary search tree?
Why is this not a binary search tree? (Brisk · Chapter 1) — "No. Although nearly every node does satisfy the BST property (all the nodes in its left subtree co…
Ideas in this flowchart
- The BST property has a single exception involving Zoe and Wash.
- Nearly every node satisfies the BST property.
- Nodes in a node’s left subtree come before it alphabetically.
- Nodes in a node’s right subtree come after it alphabetically.
- Zoe is the single exception to this property.
- Zoe is currently in Wash’s left subtree.
- Zoe should be in Wash’s right subtree.
