Monday, January 29, 2018

Almost complete Binary Tree in DSA

        An almost complete binary tree is a tree in which each node that has a right child also has a left child. Having a left child does not require a node to have a right child. Stated alternatively, an almost complete binary tree is a tree where for a right child, there is always a left child, but for a left child, there may not be a right child. The number of nodes in a binary tree can be found using this formula: n = 2^h Where n is the number of nodes in the tree, and h is the height of the tree.

Previous Post
Next Post
Related Posts

0 comments: