堆(优先队列) 标签
堆(优先队列)
共 39 篇内容。
- 23. Merge k Sorted Lists 合并K个升序链表
- 215. Kth Largest Element in an Array 数组中的第K个最大元素
- 239. Sliding Window Maximum 滑动窗口最大值
- 253. Meeting Rooms II 会议室 II
- 264. Ugly Number II 丑数 II
- 295. Find Median from Data Stream 数据流的中位数
- 347. Top K Frequent Elements 前 K 个高频元素
- 355. Design Twitter 设计推特
- 358. Rearrange String k Distance Apart K 距离间隔重排字符串
- 373. Find K Pairs with Smallest Sums 查找和最小的 K 对数字
- 378. Kth Smallest Element in a Sorted Matrix 有序矩阵中第 K 小的元素
- 451. Sort Characters By Frequency 根据字符出现频率排序
- 480. Sliding Window Median 滑动窗口中位数
- 505. The Maze II 迷宫 II
- 506. Relative Ranks 相对名次
- 621. Task Scheduler 任务调度器
- 632. Smallest Range Covering Elements from K Lists 最小区间
- 658. Find K Closest Elements 找到 K 个最接近的元素
- 659. Split Array into Consecutive Subsequences 分割数组为连续子序列
- 692. Top K Frequent Words 前K个高频单词
- 703. Kth Largest Element in a Stream 数据流中的第 K 大元素
- 743. Network Delay Time 网络延迟时间
- 767. Reorganize String 重构字符串
- 778. Swim in Rising Water 水位上升的泳池中游泳
- 787. Cheapest Flights Within K Stops K 站中转内最便宜的航班
- 857. Minimum Cost to Hire K Workers 雇佣 K 名工人的最低成本
- 862. Shortest Subarray with Sum at Least K 和至少为 K 的最短子数组
- 871. Minimum Number of Refueling Stops 最低加油次数
- 912. Sort an Array 排序数组
- 973. K Closest Points to Origin 最接近原点的 K 个点
- 1046. Last Stone Weight 最后一块石头的重量
- 1094. Car Pooling 拼车
- 1102. Path With Maximum Minimum Value 得分最高的路径
- 1135. Connecting Cities With Minimum Cost 最低成本联通所有城市
- 1167. Minimum Cost to Connect Sticks 连接棒材的最低费用
- 1405. Longest Happy String 最长快乐字符串
- 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit 绝对差不超过限制的最长连续子数组
- 1464. Maximum Product of Two Elements in an Array 数组中两元素的最大乘积
- 1631. Path With Minimum Effort 最小体力消耗路径

评论与交流