June 2018
Intermediate to advanced
316 pages
6h 34m
English
The following table shows the time complexity of the most common list operations:
| Add | Remove | Get | Contains | Data structure | |
| ArrayList | O(1) | O(n) | O(1) | O(n) | Array |
| LinkedList | O(1) | O(1) | O(n) | O(n) | Linked list |
| CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | Array |
Read now
Unlock full access