Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is amortized O(1). When the append needs to grow the slice, it does so by a multiplicative factor.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: