+ 1

Between a linked list and arrays which is more fast?

28th Mar 2019, 12:18 PM
Vincent
Vincent - avatar
2 Answers
+ 4
It depends on what you want to do. An ArrayList is faster than a LinkedList for random access and on a binary search. LinkedList are faster than ArrayList when inserting and removing. Check this link for more informations : https://stackoverflow.com/questions/322715/when-to-use-linkedlist-over-arraylist-in-java?page=1&tab=votes#tab-top
28th Mar 2019, 12:50 PM
Svarog
0
This is super helpful thanks
28th Mar 2019, 1:23 PM
Vincent
Vincent - avatar