File tree Expand file tree Collapse file tree 1 file changed +1
-50
lines changed Expand file tree Collapse file tree 1 file changed +1
-50
lines changed Original file line number Diff line number Diff line change @@ -122,53 +122,4 @@ void Post(node *n) {
122
122
}
123
123
}
124
124
125
- int main () {
126
- queue.front = 0 ;
127
- queue.rear = 0 ;
128
- int value;
129
- int ch;
130
- node *root = new node;
131
- std::cout << " \n Enter the value of root node :" ;
132
- std::cin >> value;
133
- root->val = value;
134
- root->left = NULL ;
135
- root->right = NULL ;
136
- do {
137
- std::cout << " \n 1. Insert"
138
- << " \n 2. Delete"
139
- << " \n 3. Breadth First"
140
- << " \n 4. Preorder Depth First"
141
- << " \n 5. Inorder Depth First"
142
- << " \n 6. Postorder Depth First" ;
143
-
144
- std::cout << " \n Enter Your Choice : " ;
145
- std::cin >> ch;
146
- int x;
147
- switch (ch) {
148
- case 1 :
149
- std::cout << " \n Enter the value to be Inserted : " ;
150
- std::cin >> x;
151
- Insert (root, x);
152
- break ;
153
- case 2 :
154
- std::cout << " \n Enter the value to be Deleted : " ;
155
- std::cin >> x;
156
- Remove (root, root, x);
157
- break ;
158
- case 3 :
159
- BFT (root);
160
- break ;
161
- case 4 :
162
- Pre (root);
163
- break ;
164
- case 5 :
165
- In (root);
166
- break ;
167
- case 6 :
168
- Post (root);
169
- break ;
170
- }
171
- } while (ch != 0 );
172
-
173
- return 0 ;
174
- }
125
+ int main () { return 0 ; }
You can’t perform that action at this time.
0 commit comments