Abstract


Calculate total number of nodes


  • Total nodes = 2^(Height+1) -1
  • Time complexity = log(n), because we just need to go to the bottom from one side to find the Height
  • Space complexity = O(1)

Leetcode Problems


Properties