[C/C++]priority_queue构建大顶堆和小顶堆

reference

priority_queue<int, vector<int>, less<int>> max_heap;
priority_queue<int, vector<int>, greater<int>> min_heap;
    原文作者:GreenTeemo
    原文地址: https://blog.csdn.net/GreenTeemo/article/details/103353054
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞