Skip to main content

Binary Trees Quiz

Editorial

16 questions across the five Binary Trees lessons and the section's problems: the tree's shape and lists, the traversals, recursion that returns values, views and distances, and rebuilding and writing trees down. Pick an answer to see whether it's right and why. Nothing is saved, so you can take it again.

If one trips you up, its lesson is Introduction to Binary Trees, Tree Traversals: Depth-First and Breadth-First, Recursion on Trees: Heights, Paths and Return Values, Views, Ancestors and Distances or Building and Serializing Trees.

Quiz

1 / 16

Multiple choice

The level-order list [1, 2, 3, null, 4, null, 5, 6] describes a tree. How many levels does it have?