Question: Fact: If A Descending Array Is Always A Max-Heap We Can Reverse The Array And End Up With A Min-Heap. Give An Example Max-Heap That
Fact: If A Descending Array Is Always A Max-Heap We Can Reverse The Array And End Up With A Min-Heap. Give An Example Max-Heap That Proves Reversing The Array Of A Max-Heap Doesn't Always Yield A Min-Heap. Any Counter-Example Max-Heap Will Work, You May Draw The Max-Heap In Tree Form Or Give The Array Representation As Your Solution.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
