A tree is a data structure that stores elements in a hierarchy.

Untitled

In this example our nodes have maximum of two children this is a special type of tree called Binary tree.

Applications




Binary Search Tree

Traversing Trees




Recursion

Recursion is the process of calling the method itself within the method.