Joined
Last Seen
-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #44.2K
2 Posted Topics
Re: //Complete Binary Tree... //Leaf nodes as left as possible and ... //All levels except last must be full... //Queue is used for insertion in Tree... //Queue implemented as Circular Queue... #include<iostream.h> class node; class queue { node** q; int max; int front,rear; public: queue() { front=-1; rear=-1; max=10; q=new (node*)[10]; … ![]() | |
> WE'll be taking inorder traversal of the tree and during the traversal will modify the right pointers only(using method "make_right") such that a linked list is formed having only valid right pointers. Then another method "make_left" is called to make the left pointers of the nodes point to valid … |
The End.