Sollicitatievraag bij Microsoft

Array vs Linked List

Antwoord op sollicitatievraag

Anoniem

6 aug 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).