InterviewSolution
Saved Bookmarks
| 1. |
Why Is It Difficult To Store Linked List In An Array? |
|
Answer» Both Arrays and LINKED List can be used to store linear data of similar types. Linked list provide DYNAMIC size while the size of ARRAY is fixed, So we must know the upper limit on the number of elements in advance. Linked lists have following drawbacks:
Both Arrays and Linked List can be used to store linear data of similar types. Linked list provide dynamic size while the size of array is fixed, So we must know the upper limit on the number of elements in advance. Linked lists have following drawbacks: |
|