efficent way to find N max elements in unsorted array

Joined
Aug 22, 2008
Messages
1
Reaction score
0
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 of optimising the performance.

Any Ideas are very much appreciated.

Cheers
B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,118
Latest member
LatishaWhy
Top