阅读背景:

数组的长度N值可以包含1、2、3……N ^ 2。有可能在O(n)时间内排序吗?

来源:互联网 

Given an array of length N. It can contain values from ranging from 1 to N^2 (N squared) both inclusive, values are integral. Is it possible to sort this array in O(N) time? If possible how?Given an array of length N. It can contain valu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: