Using C++

Aim : Implementation of recursive and iterative traversals on binary tree.

Theory

A **binary tree** is a hierarchical data structure where each node has at most two children: left and right.

🔹 Types of Tree Traversals:

🔹 Recursive vs Iterative Traversal

📌 Algorithm

1. Recursive Traversal

2. Iterative Traversal

Program :

Conclusion : Hence we have performed our practical successfully