Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Binary Tree Operations: Insertion, Deletion, and Search #195

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

omkar2508
Copy link

Added a BinaryTree class that implements basic operations for a binary tree. Implemented insert(Node root, int value) for inserting a node in the binary tree using level-order traversal. Implemented delete(Node root, int value) for deleting a node by replacing it with the deepest node in the tree. Implemented search(Node root, int value) for searching a node in the binary tree using level-order traversal (BFS).

Added a BinaryTree class that implements basic operations for a binary tree.
Implemented insert(Node root, int value) for inserting a node in the binary tree using level-order traversal.
Implemented delete(Node root, int value) for deleting a node by replacing it with the deepest node in the tree.
Implemented search(Node root, int value) for searching a node in the binary tree using level-order traversal (BFS).
@omkar2508
Copy link
Author

Create binary_tree.java file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant