exercise: partition a list by equivalence

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Sat Feb 19 13:34:49 EST 2005


Bearophile:
> I presume the complexity is O(n+a); n (the nodes)
> is proportional to the number of pairs, and a
> (the arcs) depends on the "intricacy" of the input pairs.

Opps... n (the number of nodes) is the number of different numbers
contained in the pairs :-]

Bearophile




More information about the Python-list mailing list