how to create a min heap in cpp code example
Example 1: min heap in c++
priority_queue <int, vector<int>, greater<int>> minHeap;
Example 2: example of a min heap
10 10
/ \ / \
20 100 15 30
/ / \ / \
30 40 50 100 40