AlgoViz

Binary tree

easy 18 min

A binary tree is a hierarchy of nodes where each node has at most two children, left and right, hanging from a single root.

Check yourself

One question at a time. Each answer explains why.

Question 1 of 10

Score 0
applied

The BST has 4 at the root, 2 and 6 as its children, and 1, 3, 5, 7 as leaves. What is its inorder traversal?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 12

Recall

What makes a tree binary?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.