阅读背景:

删除辅助内存最少的重复项目?

来源:互联网 

What is the most efficient way to remove duplicate items from an array under the constraint that axillary memory usage must be to a minimum, preferably small enough to not even require any heap allocations? Sorting seems like the obvious choice, but this is clearly not asymptotically efficient. Is there a better algorithm that can be done in place or close to in place? If sorting is the best choice, what kind of sort would be best for something like this?What is the most efficient way to remove duplic




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

分享到: