Tree Using Typescript

06 Aug 2017

Binary Search Tree

A tree is a collection of nodes , where every node can have one or more child nodes . Root node is present at the top of the tree.

A binary search tree is a tree where each node can have 0 , 1 or 2 children.

For each node the element on its left will be less than the current node and the element on the right will be greater than the current node.

Level order traversal