In-class Assignment 2
Implement the followings.
-
Create a binary tree with 6 nodes.
-
Pre-order, In-order, and Post-order traversals.
- Create a binary search tree using Insert function. Insert integers 10, 18, 7, 2, 20, 15 sequentially into an empty binary tree.