Domanda di colloquio di Microsoft

Array vs Linked List

Risposta di colloquio

Anonimo

6 ago 2010

Array have an access time of O(1) and insertion time of O(n) (in some case O(1) amortized time). Linked lists access time of O(n), insertion in some cases is O(1).