Counting number of each item in a list.

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Sun Mar 19 18:24:59 EST 2006


Paul Rubin a écrit :
> Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> writes:
> 
>>And of course, I was right. My solution seems to be faster than Paul's
>>one (but slower than bearophile's), be it on small, medium or large
>>lists.
>>
>>nb: A is mine, B is Paul's and C is bearophile's, and the number after
>>is the size of the list...
> 
> 
> Interesting.  I wonder if you could try it with a much larger number
> of distinct values in the list.

Please do, this could be interesting...



More information about the Python-list mailing list