Quick actions

cmd+k|ctrl+k

Navigation

Languages

Heap STL implementation

Snippet info

Language

Cpp

Visibility

public

Author

amangoyal1727

Created

2021-01-11T00:24:34Z

Updated

2021-01-11T00:24:34Z

#include <iostream>
#include <queue>

using namespace std;

//type def pair<int , pair<int , int >> ppi;    U can replace the int written below with ppi if the value store is in pair form

int main() {
    
    priority_queue<int> maxh;   //Max-Heap declaration
    
    priority_queue<int, vector<int>, greater<int>> minh; //Min-Heap declaration
    
    
    
    
    
}
INFO