+ 1
Between a linked list and arrays which is more fast?
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
0
This is super helpful thanks