Skip to main content

Posts

Showing posts from February, 2019

Binary Search Tree implementation using C

Binary Search Tree is a Binary Tree in which for each node, value of all the nodes in the left subtree is lesser or equal and values of all the nodes in right subtree is greater. Below is the implementation of Binary Search Tree using Linked List in C. This code allows to - Insert a new element - Search for an element - Find the height of the tree - Find the minimum element in the tree - Find the maximum element in the tree - Pre-Order Traversal - In-Order Traversal - Post-Order Traversal - Level-Order Traversal - Delete an element