Another Algorithm Job-Interview

后端 未结 5 1532
孤城傲影
孤城傲影 2021-02-04 15:02

So here is the question:

Suppose you have 100 thousand integers which ranges from 1 to 1 million. Please sort out the integers. The time complexity should

5条回答
  •  庸人自扰
    2021-02-04 16:07

    You have to use any known sorting algorithms with complexity O(n)

    Is there an O(n) integer sorting algorithm?

提交回复
热议问题