+ 1

What is the difference between ArrayList and LinkedList?

Data Structure

4th Jun 2018, 9:28 PM
Mohamed Ali
Mohamed Ali - avatar
2 ответов
+ 3
ArrayList is like vector in C++. LinkedList is like list in C++.
4th Jun 2018, 9:41 PM
Disvolviĝo;
Disvolviĝo; - avatar
+ 1
in Java ArrayList is like a table but you can put new object or value on the end of list. Getting to value or object by index is very fast, but putting new values is slow. LinkedList have very fast adding new values or object because every element of that list have link to the next and previus element.
4th Jun 2018, 9:56 PM
Krzysztof303
Krzysztof303 - avatar