This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
LinkedList inserts at head in O(1); ArrayList requires shifting all elements, taking O(n).
You've completed the free preview. Subscribe to unlock every lesson in every course.