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

process circularfunc at gmail.com
Thu Sep 11 22:21:46 CEST 2008


ok but if len is O(1) then it doesnt matter? compared to

if not lista:
        return []

i mean.



More information about the Python-list mailing list