Data Structure Converting Heap | Sololearn: Learn to code for FREE!

Data Structure Converting Heap

I have to re-write this code by multiplying vector by (-1) using Max Heap.Can Someone help me?

9th May 2020, 9:39 AM
Kristo Kallfa
Kristo Kallfa - avatar
1 ответ
If I understand you correctly, you want to reverse the order to have maximum values on top? Use less<int> instead of greater<int>.
9th May 2020, 11:05 PM
Manu_1-9-8-5 - avatar