Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 11
    >>>> ArrayList add --> O(1) <- not tru. In some cases ArrayList will have to grow to add one more element Commented Feb 8, 2013 at 0:54
  • 2
    LinkedList remove is not O(1), it would need to search for the element to be removed, therefore worst case O(n) and average O(n/2) Commented Sep 20, 2016 at 12:05
  • Neither is LinkedList.add(), although most of the answers here say so. Commented Oct 9, 2019 at 19:56