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 |
What do you mean by 2-3-4 tree?
Define b-tree of order m?
What are the types of queues?
Does hashmap maintain insertion order?
Name few collections map implementations?
Differentiate between iterator and listiterator.
Which of the collections allows null as the key?
Can binary tree have 1 child?
Sort the given values using Quick Sort? 65 70 75 80 85 60 55 50 45
When new data are to be inserted into a data structure?
what are the applications of Linked Lists?
Explain implementation of deletion from a binary tree.