Tree Flashcards

1
Q

Tree as an Array
How do you find the Child?
How do you find the parent?

A

left child :( 2i+1);
right child: (2
i+2)

parent : (i-1)/2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly