There are two basic ways to store items in memory–arrays and lists. Arrays and lists are used differently depending on your needs. Which is best if you expect to add an item later? What about if you later want to access an item out of order? In this article, based on chapter 2 of Grokking Algorithms, you’ll find out which method is more practical for your programming purposes as we explore the advantages and disadvantages of arrays and lists.

Arrays vs. lists (PDF)