find N max elements in unsorted array
843785Aug 23 2008 — edited Aug 23 2008Hi 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