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 |
Write a program to insert an element and in the specific position in the array?
Define the graph data structure?
You want to insert a new item in a binary search tree. How would you do it?
Name few concurrent collection classes?
Can you please explain the difference between string and an array?
What are basic algorithms?
Differentiate between iterable and iterator.
What is the capacity of arraylist?
What things you would care about to improve the performance of application if its identified that its db communication that needs to be improved?
List some applications of queue data structure.
How do I sort hashset?
Describe queue operation.