Let us construct BST shown in above example 10 / \ 5 50 / / \ 1 40 100
int l = 5 ; int h = 45 ; Console . WriteLine ( " Count ▁ of ▁ subtrees ▁ in ▁ [ " + l + " , ▁ " + h + " ] ▁ is ▁ " + getCount ( root , l , h ) . a ) ; } }