i want to find make a program for insertion in AVL binary tree therefore i want to find balance factor of a node by subtracting depth of right child from dephth of left child

how will i find this depth.

i am using array representetion of the tree.

Duoas 1,025