
23 Feb
2011
23 Feb
'11
3:27 a.m.
On 23 February 2011 05:31, Johan Tibell
Can someone come up with a real world example where O(1) size is important?
Tangentially - if you changed the API so the size function was called 'count' rather than 'size' or 'length', there would be no shame what's so ever in not being O(1). Problem solved :-)