About 2,870,000 results
Open links in new tab
  1. Python list vs. array – when to use? - Stack Overflow

    An important difference between numpy array and list is that array slices are views on the original array. This means that the data is not copied, and any modifications to the view will be reflected in the …

  2. java - what is the difference between a list and an arraylist

    Sep 4, 2012 · Vector is another List, much like an ArrayList in that its implementation is based on a dynamic array; it's, however, a relic of the older versions of Java and is guaranteed to be thread-safe …

  3. What is the difference between List and Array in Java?

    Apr 25, 2024 · 72 In general (and in Java) an array is a data structure consisting of sequential memory storing a collection of objects. List is an interface in Java, which means that it may have multiple …

  4. What is the difference between lists and arrays? - Stack Overflow

    Dec 22, 2012 · 12 On this page, it shows how to initialize an array, and if you scroll down a bit, under the section called "The Lists" it "explains" what lists are and how they're different from arrays. Except it …

  5. What is the difference between an Array, ArrayList and a List?

    I am wondering what the exact difference is between a Array, ArrayList and a List (as they all have similar concepts) and where you would use one over the other. Example: Array For the Array we ca...

  6. Array versus List<T>: When to use which? - Stack Overflow

    Jan 12, 2009 · A List uses an internal array to handle its data, and automatically resizes the array when adding more elements to the List than its current capacity, which makes it more easy to use than an …

  7. Difference between List and Array types in Kotlin

    Mar 28, 2016 · What is the difference between List and Array types? It seems can make same operations with them (loops, filter expression, etc..), is there any difference in behavior or usage? val …

  8. c - difference between array and list - Stack Overflow

    Aug 15, 2010 · You can distinguish slightly between array objects, and array types. Often people use array objects which are allocated with malloc, and used via a pointer to the first element.

  9. c++ - array vs vector vs list - Stack Overflow

    Oct 30, 2014 · stl list - insert and delete takes linear time since you need to iterate to a specific position before applying the insert/delete; additional space is needed for pointers; accessing an item is slower …

  10. Performance differences between ArrayList and LinkedList

    May 18, 2012 · The ArrayList must move all the elements from array[index] to array[index-1] starting by the item to delete index. The LinkedList should navigate until that item and then erase that node by …