Faculty of Science and Information Technology > Science and Information

differences between a linked list and an array list in Java?

(1/1)

rashidacse:
Adding element - Add in linked list is always O(1) where as in Array list it ranges from O(1) to O(n).
Retreving an element - For ArrayList it is O(1) where as for Linked List it is O(n).
Read more about difference between arraylist and Linked list here - http://netjs.blogspot.com/2015/0...

Navigation

[0] Message Index

Go to full version