Question: Write a pseudocode function which takes two parameters: heap 1 and heap 2 , and returns an integer. The function should return the 3 rd
Write a pseudocode function which takes two parameters: heap and heap and returns an integer. The function should return the rd largest number contained in both
heaps. Both heap and heap are maxheaps containing integers, and both heaps have at least elements.
For example, if heap contains and heap contains your function should return If heap contains and heap contains your function
should return It is acceptable if heap and heap are changed during the function call.
Assume you have a class Heap implemented which implements the following heap functions discussed in the videos and textbook and only the following functions
bronzeheap: Heap, heap: Heap: integer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
