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 |
Does treemap allow null key?
Why do we use linked lists?
What is a matrix? Explain its uses with an example
Should I use hashmap or hashtable?
What is the type of the algorithm used in solving the 8 Queens problem?
what is binary tree?
Are duplicates allowed in list?
Why is it called bubble sort?
What exactly is a thread?
What are the properties of an algorithm?
Why might quick sort might be better than merge sort?
What is data structure operations?