added a c prgrm for basic funcns on binary search tree #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a simple C program that creates and manages a binary search tree (BST). A BST is a tree where each node has a value, with smaller values on the left and larger values on the right. This program lets you:
Insert numbers into the tree without duplicates.
Display all the numbers in sorted order using an in-order traversal.
Delete a number from the tree, handling different scenarios depending on the node’s children.
Free all memory used by the tree before exiting.
It has an easy menu where you can choose what to do step by step. This program helps to understand how trees work and how to manage dynamic data using pointers in C.