Back to course overview
Data Structures & Algorithms
Core Structures
Choose the right container: lists and hash maps for lookups and counting, stacks and queues for order, and linked lists for pointer-based data.
3 lessons ยท 2h 14m
- 43mArrays and hash mapsReading
Know what lists and dicts are fast and slow at, and use a dict to count things and solve two-sum in one pass.
- 41mStacks and queuesReading
Use a stack (last in, first out) to check brackets, and a deque as a queue (first in, first out).
- 50mLinked listsReading
Build a singly linked list from nodes, walk it, and reverse it in place by re-pointing links.