我正在尝试编写一种算法,该算法可以在O(n)时间内打印n个大小数组中的k个最小数字,但我无法将时间复杂度降低到n.我怎样才能做到这一点?
arrays algorithm selection
algorithm ×1
arrays ×1
selection ×1