I have few question about binary tree types.
COMPLETE BINARY TREE: A Binary Tree is complete Binary Tree if all levels are completely filled except possibly the last level and the last level has all keys as left as possible.
Almost every example for complete binary tree is given like that.One of the last nodes have only left child.
18
/ \
15 30
/ \ /
40 50 100
It's okay.
My question: Is the following tree also a complete binary tree?
18
/ \
15 30
/ \
40 50
I know it's full binary tree also.
My second question: If it is both full binary and complete binary tree can we say that it is also perfect binary tree? ( The last tree I wrote)