Tree Terminology: Exercise II
- Define tree-related terminologies.
Consider the following trees:
Exercise Complete the table below:
| Tree | Height | is BST? |
|---|---|---|
| A | ||
| B | ||
| C |
Solution
| Tree | Height | is BST? |
|---|---|---|
| A | 6 | Yes |
| B | 2 | Yes |
| C | 6 | Yes |
Consider the following trees:
Exercise Complete the table below:
| Tree | Height | is BST? |
|---|---|---|
| A | ||
| B | ||
| C |
| Tree | Height | is BST? |
|---|---|---|
| A | 6 | Yes |
| B | 2 | Yes |
| C | 6 | Yes |