Hi, friends. I wanna ask if there is a function which is able to take a list as argument and then return its top-k maximums?

D'Arcy J.M. Cain darcy at druid.net
Thu Apr 22 16:17:47 CEST 2010

On Thu, 22 Apr 2010 15:04:01 +0100
Tim Golden <mail at timgolden.me.uk> wrote:
> > So please tell me if there is one or not. I really need this soon.
> > Appreciate a lot.
> Assuming top-k doesn't mean something obscurely statistical:

You really shouldn't do people's homework for them.  It doesn't do
them any favours.

To the OP:  Try to figure out how to do it without reversing the list.
It's simple.

D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.

More information about the Python-list mailing list