Is len O(n) or O(1) ?

Fredrik Lundh fredrik at pythonware.com
Thu Sep 11 16:37:54 EDT 2008


process wrote:

> ok but if len is O(1) then it doesnt matter? compared to
> 
> if not lista:
>         return []

what doesn't matter?

</F>




More information about the Python-list mailing list