What do you think is the most important difference between linked list and arrays. Typed preference.
Arrays:
In array we have indexes.
In array we can move randomly.
In array data is stored in contiguous memory.
Array cannot be shrink or expanded.
Array memory is allocated on stack
Linked List:
Linked List consist of nodes.
We can easily increase or decrease the size of linked list.
We cannot access linked list randomly.
Size of linked list can grow at run time
IF YOU HAVE ANY QUERY PLEASE COMMENT DOWN BELOW
PLEASE GIVE A THUMBS UP
Get Answers For Free
Most questions answered within 1 hours.