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.
可能重复: 找到列表中第 K 个最大元素的程序
我想实现中位数算法的中位数来查找序言列表中的最大元素。它究竟是如何工作的,因为我知道它成功地将列表拆分为 5 个元素,然后找到它们的中位数和中位数的中位数,最后我该如何编写它?