employer cover photo
employer logo
employer logo

Intentional Software

Part of Microsoft

Is this your company?

Intentional Software interview question

how to store the data of tree into array

Interview Answers

Anonymous

12 Feb 2016

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

Anonymous

15 Mar 2015

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