Which tree is complete?
Standard · Multiple choice · about 3 min
A complete tree has every level full except maybe the last, and the last level is filled from the left with no gaps. Pick the complete tree.
Learn the idea first: Binary trees and how they are stored, a visual lesson.
More Binary trees and how they are stored problems
- Build from a level-order array Warm-up
- Children of index i Warm-up
- Count the nodes Standard
- Sum of all values Standard
- Check completeness Challenge