Question: DATA STRUCTURES AND ALGO C++ (5 marks) Given a heap, write code to output the elements in a left, right, left, right.... order starting from
DATA STRUCTURES AND ALGO C++
(5 marks) Given a heap, write code to output the elements in a left, right, left, right.... order starting from the root. For example, your program should print 77,45,10, and 31 for the following tree. The code should be generic, and should work with any size heap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
