[Tutor] Faster procedure to filter two lists . Please help

Alan Gauld alan.gauld at freenet.co.uk
Sun Jan 16 01:44:38 CET 2005


> GR> len is actually a field in the underlying C object so len() is a
> GR> constant (O(1)) and as-fast-as-it-can-be operation.
>
TP> ...n integers), but (ignoring the range() complication) there's no
TP> difference in O() behavior between the two.

OK, The timbot's word is good enough for me, I won't bother
looking at the code, I'll revert to my previous assumption! :-)

Alan G.



More information about the Tutor mailing list