Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 我们如何在 O(k) 时间内从最大堆中找到第 k 个最大元素?
有一个给定的最大堆,我们想找到一个时间复杂度为 o(k) 的算法来检查第 k 个最小元素是否大于任意给定数字。