Core CS
Data Structures
Every data structure you need, from arrays to segment trees: how it is laid out in memory, what each operation costs, when to use it, and implementations in Java, Python and TypeScript.
5 modules 16 lessons ~1 h of reading
Start learning
0/16 completed
01
Linear Structures
5 lessons- 1ArraysThe most fundamental data structure — contiguous memory, O(1) indexing, and why it powers almost everything else.beginner5 min
- 2StringsHow text is stored, why strings are often immutable, and the techniques behind every string problem.beginner3 min
- 3Linked ListsNodes connected by pointers — O(1) insertion anywhere you already are, at the price of O(n) access.beginner3 min
- 4StacksLast-in, first-out. The structure behind function calls, undo, parsing and depth-first search.beginner2 min
- 5Queues & DequesFirst-in, first-out queues, double-ended deques and circular buffers — the backbone of BFS, scheduling and streaming.beginner2 min
02
Hashing
1 lessons03
Trees
5 lessons- 7Trees & TraversalsHierarchical data — terminology, binary trees, and the four traversals every engineer must know cold.beginner3 min
- 8Binary Search TreesOrdered binary trees with O(h) search, insert and delete — and why the height h is everything.intermediate3 min
- 9Balanced Trees (AVL, Red-Black, B-Trees)How self-balancing trees guarantee O(log n) with rotations — and why databases use B-trees instead.advanced4 min
- 10Heaps & Priority QueuesGet the min (or max) in O(1), insert and remove in O(log n) — all stored in a plain array.intermediate3 min
- 11Tries (Prefix Trees)A tree keyed by characters — O(L) insert and lookup, and instant prefix queries for autocomplete and dictionaries.intermediate2 min
04
Graphs & Sets
2 lessons05
Advanced
3 lessons- 14Segment Trees & Fenwick TreesAnswer range queries (sum, min, max) and apply updates in O(log n) — the structures behind range-query problems.advanced2 min
- 15Skip Lists, Bloom Filters & SketchesRandomised and probabilistic structures that trade a little certainty for big wins in speed and memory.advanced3 min
- 16Designing an LRU CacheCombine a hash map and a doubly linked list for O(1) get and put — the most-asked data-structure design question.intermediate3 min