摘要: 可删除堆 可利用两个优先队列来实现维护删除任意元素的功能 思想 : 利用延迟删除 priority_queue<int,vector<int>,greater<int> > Q , p; while(Q.size()) { if( Q.top() == p.top() ) p.pop(); else 阅读全文
posted @ 2022-03-30 22:59 xqy2003 阅读(29) 评论(0) 推荐(0)