Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is faster – LinkedList of ArrayList?

arraylist faster linkedlist
0
Posted

What is faster – LinkedList of ArrayList?

0

As programmers, we often try to eke the last ounce of performance out of our collections. An interesting statement is this: “ArrayList is faster than LinkedList, except when you remove an element from the middle of the list.” I have heard this on more than one occasion, and a few months ago, decided to try out how true that statement really was.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.