previous
|
index
|
next
Child and Parent Operations
For example,
16
and
10
have the same parent,
8
.
The index of
16
's parent is
8 / 2 = 4
.
The index of
10
's parent is
9 / 2 = 4
.
previous
|
index
|
next