height and depth code example Example: height vs depth height - starts from leaf and goes to root depth - starts from root and goes to leaf