Arrays

Episode 7 Dynamic Arrays

8 min · Java · Quiz

Title card of Episode 7: Dynamic Arrays

▶ This video is coming to YouTube soon.

You'll be able to build a dynamic array from a static one (size vs capacity, doubling, get/set/insert/remove), explain amortized O(1), and use ArrayList correctly: its methods, the remove(int) trap, safe removal while iterating, boxing costs, and when to prefer a plain array.

Quiz: test yourself

The 3 questions from the end of the episode. Pick an answer to see why it's right.