Which is better arraylist or linkedlist?



Which is better arraylist or linkedlist?..

Answer / Nandpal Tyagi

ArrayList and LinkedList both have their own strengths, and the choice between them depends on the specific use case. ArrayList provides faster access to elements via indexes, which makes it suitable for sequential access or searching, while LinkedList is better suited for insertion and deletion operations at arbitrary positions because of its linked structure.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Does treemap allow null key?

1 Answers  


Why do we use linked lists?

1 Answers  


What is a matrix? Explain its uses with an example

1 Answers  


Should I use hashmap or hashtable?

1 Answers  


What is the type of the algorithm used in solving the 8 Queens problem?

1 Answers  


what is binary tree?

12 Answers   BMC,


Are duplicates allowed in list?

1 Answers  


Why is it called bubble sort?

1 Answers  


What exactly is a thread?

1 Answers  


What are the properties of an algorithm?

1 Answers  


Why might quick sort might be better than merge sort?

1 Answers  


What is data structure operations?

1 Answers  


Categories