Tree
Binary Tree
Data Structure:
Full Binary Tree:
A binary tree is a full binary tree if every node has either 0 or 2 children.
![](images/full_bt.png)
(The above image is from http://alrightchiu.github.io/SecondRound/.)
Complete Binary Tree:
A binary tree is a complete binary tree if every level are completely filled except the last level. The last level can either completely filled or not.
![](images/complete_binary_tree.png)
(The above image is from http://alrightchiu.github.io/SecondRound/.)
Balanced Binary Tree:
A binary tree is a balanced binary tree if the height of the tree is O(longN), where N is the number of tree nodes.
![](images/BalancedTree-Example.png)
(The above image is from https://algorithms.tutorialhorizon.com/.)