Test yourself
Every quiz from the lessons, one topic at a time. Answer first, then read why.
Data Structures
Take the exam- Arrays and StringsCore array idea, memory layout, strings, and language differences.
- Linked ListsNodes and pointers: cheap inserts at the front, slow lookups.
- Stacks and QueuesLast in first out versus first in first out, and where each shows up.
- Hash TablesKeys, hash functions, buckets, collisions and load factor.
- Binary Search TreesSorted data in a tree shape, and why height decides the cost.
- Heaps and Priority QueuesA tree packed into an array that always knows its smallest value.
- Tries (Prefix Trees)Shared prefixes, the end-of-word mark, autocomplete, and what it costs in memory.
Algorithms
Take the exam- Big OConstant, linear, and quadratic growth without formal noise.
- Binary SearchHalve a sorted range each step until the value is found.
- SortingBubble, selection, insertion and merge sort, step by step.
- Graph TraversalBreadth-first and depth-first search: a queue versus a stack.
- Dynamic ProgrammingAnswer each repeated sub-question once: memoization, tabulation and a four-step recipe.
Interview Patterns
Take the exam- Two PointersMove two positions toward each other to skip pairs that cannot work.
- Sliding WindowUpdate a running answer as values enter and leave a stretch.
- Fast and Slow PointersTwo speeds on one list: find a loop or the middle in O(1) memory.
- Prefix SumsBuild running totals once, then answer any range sum with one subtraction.