Number of left leaf nodes at ( h - 1 ) th level observe that if nodes are not present at last level then there are a / 2 leaf nodes at ( h - 1 ) th level
let left_leaf_nodes = Math . floor ( ( ( 1 << height ) - nodes_last_level ) / 2 ) ;