What are the main differences between the linked list and linear array?



What are the main differences between the linked list and linear array?..

Answer / Rohit Kumar

A linear array (also known as an array) is a contiguous sequence of memory locations, while a linked list is a collection of nodes that store data and pointers to other nodes. Linear arrays have faster access times due to their contiguous nature but are less flexible in terms of adding or removing elements. In contrast, linked lists are more flexible but have slower access times.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Name few collections map implementations?

1 Answers  


Explain what are the notations used in evaluation of arithmetic expressions using prefix and postfix forms?

1 Answers  


Explain the Stack

1 Answers   Tech Mahindra,


Does the minimal spanning tree of a graph give the shortest distance between any 2 specified nodes?

1 Answers  


What is a data structure definition?

1 Answers  


How do you do binary search?

1 Answers  


Is map a data structure?

1 Answers  


Does treeset allow duplicates?

1 Answers  


Explain quick sort and merge sort algorithms.

1 Answers  


What is the difference between collection and collections?

1 Answers  


What actions are performed when a function returns?

1 Answers  


Is quicksort faster than merge sort?

1 Answers  


Categories