Proper binary tree - each node has either two children or none (a leaf);
Full binary tree - a proper binary tree in which all leaves are at the same depth.
Questions
Visiting each node in a specific order.
| Traversal | Order of Visit | Description |
|---|---|---|
| Pre-order | Root → Left → Right | Visit the root first, then subtrees |
| In-order | Left → Root → Right | Visit left subtree, then root, then right |
| Post-order | Left → Right → Root | Visit both subtrees before the root |
In-order Traversal :
(always go back to the root of each node! -At every subtree repeat the same process recursively.)