You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linear type of data, guarentee random access (depending on the implementation), keeps ordre of the elements entered, Implemented as an array that grows automatically .
Access Time Complexity
read O(1), add O(1), remove O(N)
Code example
List<Integer> list = newArrayList<>();
list.add(10);
list.remove(10);
list.get(0);
Note: use ArrayList instead of Vector in java, as the first one is not synchronized .
Queues
Definition
a FIFO implementation, generally represented as an array or a LinkedList