跳转到内容

堆(优先队列) 标签

← 所有标签

堆(优先队列)

39 篇内容。

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

评论与交流