摘要: 373. Find K Pairs with Smallest Sums 373. Find K Pairs with Smallest Sums Total Accepted: 1453 Total Submissions: 5789 Difficulty: Medium You are give 阅读全文
posted @ 2016-07-10 18:29 Deribs4 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: priority_queue本质是一个堆。 1. 头文件是#include<queue> 2. 关于priority_queue中元素的比较 模板申明带3个参数:priority_queue<Type, Container, Functional>,其中Type 为数据类型,Container为保存 阅读全文
posted @ 2016-07-10 15:15 Deribs4 阅读(38033) 评论(1) 推荐(12) 编辑