A linked list is a data structure in which the elements contain references to the next (and optionally the previous) element. Linked lists offer O(1) insert and removal at any position, O(1) list concatenation, and O(1) access at the front (and optionally back) positions as well as O(1) next element access. Random access has O(N) complexity and is usually unimplemented.
Insert/Remove is O(n), trim down the exerpts, and remove opinion-based statemebt about random access
rolfl
- 98.1k
- 17
- 219
- 419