Visualized DSA Strategies
Episode 0 The Visual Dictionary
Do you need this episode?
4 quick questions on what it teaches. Get them all right and skip ahead; miss one and you'll see the part of the video that answers it.
Before we solve a single interview problem, we agree on a language. Every data structure in this course has one shape and one colour: arrays, strings, counters, matrices, hash maps, hash sets, stacks, queues, linked lists and heaps. For each one you'll see what the shape means, how to declare it in JavaScript, and what its operations cost.
What you'll learn
- How to read pointers, windows and the four highlight colours
- Arrays, strings, new Array(26).fill(0) counters and 2D arrays built with Array.from, and why indexing is O(1)
- Map vs Set: key → value vs membership only, and why a Map beats a plain object
- Stacks, queues and deques: an array as a stack, a head index for a queue, and which end you can touch
- Linked lists and heaps (JavaScript has no built-in heap: a small one by hand), and what makes them different
Chapters
Quiz: test yourself
7 questions. Pick an answer to see why it's right.