Pergunta de entrevista da empresa Intentional Software

how to store the data of tree into array

Respostas da entrevista

Sigiloso

12 de fev. de 2016

The left child should be 2*n+1 and the right child 2*n+2

Sigiloso

15 de mar. de 2015

if the node of the tree, index = n, then the left child 2*n, right child 2*n + 1