庆宇笔记 - 堆排序\链表实现局部排序 的评论 https://qingyu.me/archives/116.html zh-CN 以前面试时被问一个问题:有10万个乱序的数,要前5个最大(或最小)的数?作为一个没好好学算法的人,还没有算法时间、空间复杂度的概念,只提出了冒泡、快速排序等,然后取前5。这显然不是合理的做法。读... Fri, 19 Dec 2025 09:47:22 +0800 Fri, 19 Dec 2025 09:47:22 +0800 1 https://qingyu.me/archives/116.html#comment-312 https://qingyu.me/archives/116.html#comment-312 Fri, 19 Dec 2025 09:47:22 +0800 1 555

]]>
https://qingyu.me/archives/116.html#comment-312#comments
1 https://qingyu.me/archives/116.html#comment-299 https://qingyu.me/archives/116.html#comment-299 Fri, 19 Dec 2025 09:23:43 +0800 1 555

]]>
https://qingyu.me/archives/116.html#comment-299#comments
1 https://qingyu.me/archives/116.html#comment-280 https://qingyu.me/archives/116.html#comment-280 Fri, 19 Dec 2025 08:20:25 +0800 1 1

]]>
https://qingyu.me/archives/116.html#comment-280#comments
布拉格 https://qingyu.me/archives/116.html#comment-69 https://qingyu.me/archives/116.html#comment-69 Tue, 02 Aug 2016 09:46:59 +0800 布拉格 这种算法运用了插入排序的思路,时间复杂度应该是O(d*n),d是排好序的链表长度。

]]>
https://qingyu.me/archives/116.html#comment-69#comments