Page 1 of 1

What is the parent for a node ‘w’ of a complete binary tree in an array representation when w is not 0?

Posted: Wed Jul 13, 2022 7:42 pm
by answerhappygod
a) floor(w-1/2)
b) ceil(w-1/2)
c) w-1/2
d) w/2