why it is difficult to store linked list as an array?
Answer / codex
Its not difficult if you need to copy items in linked list to an array you should traverse the list starting first element and copy each value you pass by to an array.
if you are asking why do we use a linked list rather than array then it's because an array needs to have a fixed size but in a linked list you can add as much items as you can.but If you really need to use an array you can use an arraylist with resize feature.
| Is This Answer Correct ? | 0 Yes | 0 No |
How many pointers are necessary to implement a simple linked list?
Explain linear linked implementation of Stack and Queue?
How dynamic arrays are created?
How does a treemap sort?
What is dynamic array in excel?
What is precision?
How to create an Array?
Does hashset maintain order?
Differentiate between an array and an arraylist.
What is ds tree?
How do you separate zeros from non-zeros in an array?
What are the 3 control structures in programming?