![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
优先队列
importsys
zjuer
展开
-
leetcode 871. Minimum Number of Refueling Stops详解
871. Minimum Number of Refueling Stops description: TA car travels from a starting position to a destination which is target miles east of the starting position. Along the way, there are gas stations....原创 2019-05-26 21:05:15 · 434 阅读 · 0 评论 -
Leetcode 855. Exam Room 考场就座:提供两种解法
Leetcode 855. Exam Room 考场就座: 提供两种解法855. Exam Room 考场就座(两种解法)题目描述示例:解答1代码1解答2代码2 855. Exam Room 考场就座(两种解法) 题目描述 In an exam room, there are N seats in a single row, numbered 0, 1, 2, …, N-1. When a stu...原创 2019-06-13 15:35:44 · 578 阅读 · 0 评论 -
Leetcode 692. Top K Frequent Words 前K个高频单词(最小堆)
Leetcode 692. Top K Frequent Words 前K个高频单词:最小堆692. Top K Frequent Words 前K个高频单词题目描述示例:解答代码 692. Top K Frequent Words 前K个高频单词 题目描述 Given a non-empty list of words, return the k most frequent elements. ...原创 2019-06-18 17:41:22 · 437 阅读 · 0 评论