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 <[email protected]>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 [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
