- Which Of The Following Is True Of Arrays And Linked Lists Deleting The First Element From A Linked List Takes O 1 Time 1 (28.64 KiB) Viewed 40 times
Which of the following is true of arrays and linked lists? Deleting the first element from a linked list takes O(1) time
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following is true of arrays and linked lists? Deleting the first element from a linked list takes O(1) time
Which of the following is true of arrays and linked lists? Deleting the first element from a linked list takes O(1) time. Searching an Array for a value takes O(1) time. Searching a linked list for a value takes O(n^2) time. Deleting any other element from a linked list besides the first takes O(1) time. A linked list has no limit on capacity other than computer memory limitations. Array has a fixed capacity.