retrieve the 2 highest item from a list containing 100 000 integers

Posted by Joey on Stack Overflow See other posts from Stack Overflow or by Joey
Published on 2010-04-29T16:33:29Z Indexed on 2010/04/29 16:37 UTC
Read the original article Hit count: 293

Filed under:
|
|
|

Hi everyone,

How can retrieve the 2 highest item from a list containing 100 000 integers.

You do understand without having to sort the entire list.

© Stack Overflow or respective owner

Related posts about python

Related posts about list