Find the height of the tree.
And start the traversal from root, if at any level < height, its left or
right child is NULL then it is not complete binary

On Tue, Jun 29, 2010 at 11:34 PM, sharad kumar <sharad20073...@gmail.com>wrote:

> A *complete binary tree* is a binary tree in which every level, *except
> possibly the last*, is completely filled, and all nodes are as far left as
> possible
> write a code which check whether a given tree is complete or not
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to