Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ericmoritz
· 14y ago · 0 comments
anyone know what the time complexity of the append function is?
Comments
[–]
rsc
14y ago
It is amortized O(1). When the append needs to grow the slice, it does so by a multiplicative factor.