Think about Loose Coupling | |
PerlMonks |
Re^4: Data structure challenge (amortized)by sleepingsquirrel (Chaplain) |
on Mar 18, 2004 at 00:01 UTC ( [id://337561]=note: print w/replies, xml ) | Need Help?? |
As long as we're only talking big-O notation, I think that that O(n) initialization is a wash. Inserting n items at O(1) is O(n). And O(n) (for initialization) + O(n) (for n insertions) = O(n).
In Section
Meditations
|
|