Re:Please grow your buffers exponentially
by SerpentJoe on Tuesday November 04, 2014 @02:01PM
(#8558364)
Ah yeah, I was double wrong. I see now that N insertions require a maximum of 2N-3 copy operations (with a growth factor of 2), so O(1) amortized. Thanks!
[ Parent
| on HN ]
There are no comments on this comment yet.