Internals and complexity of types, containers and algorithms

"Martin v. Löwis" martin at v.loewis.de
Tue Jun 26 23:34:16 EDT 2007


Paul Rubin schrieb:
> "Martin v. Löwis" <martin at v.loewis.de> writes:
>> Amortized O(1) for inserting into lists.
> 
> I think you mean amortized O(1) for appending to lists.

Indeed so; insertion is O(n).

Regards,
Martin



More information about the Python-list mailing list