1. Tree Terminologies

A tree is a hierarchical, non-linear data structure made up of nodes connected by edges.

Basic Terms:

Binary Tree:

A binary tree is a tree where each node has at most two children (left and right).

Binary Search Tree (BST):

A special type of binary tree where: