Question about `list.insert`
Tim Chase
python.list at tim.thechases.com
Thu Feb 6 22:11:30 EST 2014
On 2014-02-06 22:00, Roy Smith wrote:
> > list does not promise better than O(1) behavior
>
> I'm not aware of any list implementations, in any language, that
> promises better than O(1) behavior for any operations. Perhaps
> there is O(j), where you just imagine the operation was performed?
Pish...there's always O(0) which is achieved by *not* performing some
unneeded operation ;-)
-tkc
More information about the Python-list
mailing list