95. Data Structures – Arrays and Array-ish

Topics covered
Popular Clips
Episode Highlights
Linked Lists
Linked lists are a fundamental data structure in computer science, often compared to arrays. Joe Zack describes them as ordered sets of objects, each containing a reference to the next item, similar to a conga line 1. This structure allows for efficient insertion and deletion of elements, especially when dealing with lots of inserts and deletes, as you don't need to shift elements like in arrays 2. Despite their advantages, linked lists are less common in modern programming languages like C# and JavaScript, where arrays are more prevalent due to ease of use and language support 3.
Pros & Cons
Linked lists offer several advantages over arrays, such as not requiring a predefined size and allowing for non-contiguous memory allocation. This makes them ideal for scenarios where memory efficiency is crucial 4. However, they lack random access capabilities, meaning you can't directly access an element by index, which can be a significant drawback 5. Joe Zack highlights that while linked lists are great for dynamic memory allocation and efficient insertions and deletions, they come with the overhead of maintaining pointers, especially in doubly linked lists 6.
Related Episodes


Data Structures - Arrays and Array-ish
Answers 383 questions94. Data Structures - Primitives
Answers 383 questions

Data Structures - (some) Trees
Answers 383 questions

Data Structures - Heaps and Tries
Answers 383 questionsDesigning Data-Intensive Applications – Scalability
Answers 383 questionsDesign Patterns Part 3
Answers 383 questionsCaching Overview and Hardware
Answers 383 questions86. Lightning Talks
Answers 383 questionsCaching in the Application Framework
Answers 383 questionsDesign Patterns Part 1
Answers 383 questions87. Thunder Talks
Answers 383 questions

Algorithms You Should Know
Answers 383 questionsClean Code - How to Write Amazing Functions
Answers 383 questions

Designing Data-Intensive Applications - SSTables and LSM-Trees
Answers 383 questionsHow to be a Programmer
Answers 383 questions













