Binary search tree
useful in search, insertion, deletion, operation
Binary search tree(BST) is a binary tree that is empty or each node satisfies the following properties:
- every element has a key, and no two elements have the same key
- the keys in a non-empty left subtree must be smaller than the key in the root of the subtree
- the keys in a non-empty right subtree must be larger than the key in the root of the subtree
- the left and right subtrees are also BST




If you want to see the code all? 👩🏻💻 https://github.com/jyuunnii/Data-Structure
Time complexity of binary search trees
searching, insertion, deletion is bounded by O(h) where his the height of the binary search tree. In a good case, the height may be log n where n is the elements of the BST. On contrast, the worst case is O(n).