Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SerpentJoe
on Nov 4, 2014
|
parent
|
context
|
favorite
| on:
Please grow your buffers exponentially
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!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: