Skip to content

Latest commit

 

History

History

Sum of Heights of All Individual Nodes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Given a binary tree, find sum of heights all individual Nodes in the tree.

        1
    2       3
  4   5

1). Height of Node 1 - 3
2). Height of Node 2 - 2
3). Height of Node 3 - 1
4). Height of Node 4 - 1
5). Height of Node 5 - 1

Adding all of them = 8