Skip to content

Data structures and algorithms · Trees

Building and walking trees

Insert by searching; visit level by level with a queue. · 10 minutes

Predict first

In a binary search tree with root 8, whose left child is 4 and right child is 12, where does 6 go?