0
Data Structure Converting Heap
I have to re-write this code by multiplying vector by (-1) using Max Heap.Can Someone help me? https://code.sololearn.com/cN2j5hch3e42/?ref=app
1 Réponse
0
If I understand you correctly, you want to reverse the order to have maximum values on top?
Use less<int> instead of greater<int>.