Tree stored in an array

[8, 3, 10, 1, 6] → the left child of 3 is 1

You can also choose a level by clicking its number.

About the course

Description
A binary tree in an array: the root at index 0, the children of index i at indexes 2i + 1 and 2i + 2
More information
A graph consists of vertices and the edges between them. A tree is a connected graph without cycles.
Sample question
[8, 3, 10, 1, 6] → the left child of 3 is 1
Author
Jiří Preisler
Version
1.0