Skip to content

Commit ae06157

Browse files
chore: remove main from binary_search_tree.cpp
1 parent 98d7352 commit ae06157

File tree

1 file changed

+1
-50
lines changed

1 file changed

+1
-50
lines changed

data_structures/binary_search_tree.cpp

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -122,53 +122,4 @@ void Post(node *n) {
122122
}
123123
}
124124

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 << "\nEnter 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 << "\n1. Insert"
138-
<< "\n2. Delete"
139-
<< "\n3. Breadth First"
140-
<< "\n4. Preorder Depth First"
141-
<< "\n5. Inorder Depth First"
142-
<< "\n6. Postorder Depth First";
143-
144-
std::cout << "\nEnter Your Choice : ";
145-
std::cin >> ch;
146-
int x;
147-
switch (ch) {
148-
case 1:
149-
std::cout << "\nEnter the value to be Inserted : ";
150-
std::cin >> x;
151-
Insert(root, x);
152-
break;
153-
case 2:
154-
std::cout << "\nEnter 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; }

0 commit comments

Comments
 (0)