[BangPypers] list problem

Shekhar Tiwatne pythonic at gmail.com
Fri Jul 23 09:09:25 CEST 2010


On Friday 23 July 2010 09:11 AM, Baishampayan Ghose wrote:
>> Out of curiosity I tried benchmarking few of these solutions alongwith the
>> one I wrote using itertools.groupby.
>> My benchmarking did include large data sets and worst case.
>> Results are the shortest solution (by Anand) was way faster than others.
>> After that it was Steve's and mine and Navin was almost the same of the last
>> spot.
>>
>> Which one is most readable? Well I leave that for now.
>>      
> How did mine perform?
>    
Hey BG,

For worst case and dataset in problem your script beats all.
For simple but large data it's Anand's solution just slightly ahead.

Wow.

Shekhar


More information about the BangPypers mailing list