we can use this index while pushing
Why we are neglecting zero index in heap
to make a relation between parent and its left and right child
parent =i
LC=2i
RC=2i+1
if i=0 then LC=RC=0
we can use this index while pushing
to make a relation between parent and its left and right child
parent =i
LC=2i
RC=2i+1
if i=0 then LC=RC=0