Binary Tree
QUETIONS :
Basics :
Binary tree is non-linear data structure in which each node has at most two children, which are referred to as the left child and the right child , while Simple tree can have any number of children.
Creating a Binary Tree
Traverse a Binary Tree :
- 1. Inorder Traversal : In this traversal, the nodes are recursively visited in this order: left, root, right.
- 2. Preorder Traversal : In this traversal, the nodes are recursively visited in this order: root, left, right.
- 3. Postorder Traversal : In this traversal, the nodes are recursively visited in this order: left, right, root.
Constracting Binary Tree From Other Traversals.
Types Of Binary Tree :
Last updated