🧮 Data Structures & Algorithms

Big-O, arrays, hash maps, linked lists, stacks, trees, heaps, graphs, sorting, binary search, recursion and dynamic programming, with a pattern cheat sheet for interviews.

14 lessons · about 1.1 hours

Start the first lesson →
  1. 01Big-O Notation Made Simple Big-O describes how an algorithm's time or memory grows as the input grows. Learn the 7 common complexities with pictures and how to calculate them.Beginner5 min read
  2. 02Arrays & Strings The most-used data structure. See how arrays live in memory, why some operations are instant and others slow, and the essential string tricks for interviews.Beginner5 min read
  3. 03Hash Maps & Sets The interview superpower. Learn how hashing gives O(1) lookups, how collisions are handled, and the patterns (counting, seen-set, grouping) that solve dozens of problems.Beginner4 min read
  4. 04Two Pointers & Sliding Window Two techniques that turn many O(n²) array and string problems into O(n). Learn them with animated-style diagrams and classic interview examples.Intermediate5 min read
  5. 05Linked Lists A chain of nodes where each node points to the next. Learn how they differ from arrays, and master reversal, fast/slow pointers and cycle detection.Intermediate4 min read
  6. 06Stacks & Queues Stacks are last-in-first-out, queues are first-in-first-out. Two simple structures behind undo buttons, browser history, task scheduling and many interview problems.Beginner4 min read
  7. 07Trees & Binary Search Trees Trees model hierarchies like folders, the DOM and org charts. Learn the vocabulary, the four traversals, and how binary search trees give fast lookups.Intermediate5 min read
  8. 08Heaps & Priority Queues A heap always gives you the smallest (or largest) item in O(1) and adds or removes items in O(log n). The engine behind "top K" problems, schedulers and Dijkstra.Intermediate5 min read
  9. 09Graphs: BFS & DFS Graphs model networks like maps, social media and dependencies. Learn how to store a graph and explore it with breadth-first and depth-first search.Intermediate5 min read
  10. 10Sorting Algorithms From simple bubble sort to merge sort and quick sort. See how each one works, compare their speeds, and learn which one JavaScript's sort() actually uses.Intermediate5 min read
  11. 11Binary Search Find anything in a sorted list of a billion items in about 30 steps. Learn the classic algorithm, its off-by-one traps, and the powerful "binary search on the answer" trick.Intermediate5 min read
  12. 12Recursion & Backtracking A function that calls itself to solve smaller copies of a problem. Learn to think recursively, visualise the call stack, and use backtracking to explore all possibilities.Intermediate5 min read
  13. 13Dynamic Programming DP means solving a big problem by remembering the answers to its smaller overlapping sub-problems. A friendly, step-by-step guide with tables you can picture.Advanced6 min read
  14. 14DSA Interview Patterns Cheat Sheet Map any coding-interview problem to the right technique in seconds. Keyword triggers, a decision flowchart, complexity tables and a step-by-step interview routine.Intermediate5 min read