Question: Please Do both task in C++ need emergency Task 03 (15pts + 15pts] Examine the binary tree in figure: 2 and solve the following problems:
Please Do both task in C++ need emergency

Task 03 (15pts + 15pts] Examine the binary tree in figure: 2 and solve the following problems: 15 50 12 25 75 10 14 Figure 2: Binary Tree 1. Write a function to calculate the number of leaves a tree has. For the given tree the expected output is 5. 2. Write a function to print the elements so that the expected output is: 10, 14, 2, 12, 25, 75, 8, 50, 15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
