Hi, Terry Reedy wrote: ...
Yes, after figuring out what to do from the original post, I saw yours and then Pruebono's and decided that since two people had submitted the jackpot algorithm, I need not say more. I will say this: this solution amounts to finding equivalence classes (the sets of items with a given 'key') and then finding the classes (sets) with more than one member. Defaultdict is great for this.
I must say mine works with at least similar performance. Maybe its a timezone issue but I also provided a simple test to my solution. Also I never saw a list where the threading often goes wrong like this here - is there any special setup or is it just peoples MUA which screws up? T.
smime.p7s
Description: S/MIME Cryptographic Signature
-- http://mail.python.org/mailman/listinfo/python-list