Page 1 of 1

Using what formula can a parent node be located in an array?

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