Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

find N max elements in unsorted array

843785Aug 23 2008 — edited Aug 23 2008
Hi guys,

I want to find N max elements in unsorted array of integers in most efficient way as possible.

I could sort and then find the max elements but there should be some way of optimising the performance.

Any Ideas would be very much appreciated.

Cheers
J
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 20 2008
Added on Aug 23 2008
3 comments
786 views