Advertisements
Advertisements
प्रश्न
Write three distinct differences between Array and Linked List.
फरक स्पष्ट करा
उत्तर
Sr. No. | Array | Linked List |
(i) | A data structure made up of a finite, ordered collection of uniform data elements is called a linear array. | One type of linear data structure is a linked list. This is made up of a group of "data elements" known as nodes, where pointers are used to maintain line order. |
(ii) | An array's components are kept in arranged memory regions. | It is not necessary for linked list elements to be kept in consecutive memory locations. |
(iii) | Inspection of a complex procedure's element within an array. | An element in a linked list is simple to inspect. |
(iv) | Proays are difficult to extend. | It is simple to extend a linked list. |
(v) |
E.g.
|
E.g.
|
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2023-2024 (March) Official