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

"insert" does not stipulate prepend or append. The latter two operations are O(1) both for linked and array backed [amortized O(1) for array backed and actually faster due to high constant costs of allocating/releasing/iterating linked structures]


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

Search: