Member-only story
Data Structures — Trees- Part-2
5 min readMay 28, 2022
What is a Binary Tree ?
A tree whose elements have at most 2 children is called a binary tree. Since each element in a binary tree can have only 2 children, we typically name them the left and right child.
Types of Binary Tree
1. Full Binary Tree
A full Binary tree is a special type of binary tree in which every parent node/internal node has either two or no children.
2. Complete Binary Tree
A complete binary tree is just like a full binary tree, but with two major differences
- Every level must be completely filled except the last one.
- The last level has all the nodes as left as possible.