阅读背景:

从Java Array获得前四大值

来源:互联网 

I am trying to find top 4 maximum value from integer array input. For example for given input array {1232, -1221, 0, 345, 78, 99} will return {1232, 345, 99, 78} as a top 4 maximum value. I have solved the requirement with following method below. But I am still not satisfy with its time efficiency. Is there any chance to optimize the method more as the input become larger? Any clues are really appreciated. Thank you.I am trying to find top 4 maximum value from in




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

分享到: