Lesson
Trees and Heaps
A binary tree has nodes with up to two children. The height is the number of edges on the longest root-to-leaf path. A heap is a complete binary tree with an ordering property: in a min-heap every parent is no larger than its children.
Practice
Traversals visit nodes in a defined order. In-order traversal of a binary search tree yields the keys in sorted order.
Quiz