Why arraylist is not efficient for manipulation?



Why arraylist is not efficient for manipulation?..

Answer / Avinash Kumar Shahi

ArrayLists can become inefficient when manipulating the collection often (e.g., adding, removing, or reordering elements), especially if the current size of the arraylist is much larger than its capacity and requires frequent resizing.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is a stable sort?

1 Answers  


an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].

1 Answers  


Define level of the tree?

1 Answers  


Is arraylist synchronized?

1 Answers  


What type of memory allocation is referred for Linked lists?

1 Answers  


What is the function of stack?

1 Answers  


What is data algorithm?

1 Answers  


Who invented data structure?

1 Answers  


Define disjoint set adt?

1 Answers  


Define threaded binary tree.

1 Answers  


What is the limit of arraylist?

1 Answers  


In which data structure, elements can be added or removed at either end, but not in the middle?

42 Answers   Infosys, NIC, TTA, Wipro,


Categories