Reading preferences

All modules

Available

Data Structures and Algorithms

Explore DSA from foundations to expert topics. Published lessons begin with algorithms, arrays, sorting, and search.

Levels indicate concept complexity and prerequisites, not learner progress.

Beginner

  1. Thinking in Algorithms — Turn an everyday job into clear steps, then check that those steps finish and give the right answer.
  2. Arrays and Lists — Picture numbered slots, then learn how to read, change, add, and remove items without confusing a position with a value.
  3. Strings — Treat text as an ordered sequence, while remembering that Python strings cannot be changed in place.
  4. Traversing a List — Visit each item once, like checking every shelf slot, and use a loop to build a result.
  5. Time and Space Complexity — Count how work and extra storage grow when the input gets bigger, instead of guessing from a stopwatch.
  6. Sorting — Start with arranging books and prices, then understand the steps computers use to put things in order.
  7. Bubble Sort — Compare neighbouring number cards, swap the ones in the wrong order, and see why a full pass helps.
  8. Selection Sort — Search for the smallest remaining number, put it in place, and repeat.
  9. Insertion Sort — Keep part of a row in order, then make room and slide the next number into the right place.
  10. Linear Search — Look through items one at a time, stop at the first match, and know what happens when nothing matches.
  11. Binary Search — Use an already sorted row to rule out half the remaining positions at each decision.

Intermediate

  1. Linked Lists — Follow a chain of nodes and see how links let a list grow without shifting a row of slots.
  2. Stacks — Add and remove from the same end, like a stack of plates, and understand when last-in-first-out helps.
  3. Queues — Follow a first-in-first-out line and see why a queue needs a front and a back.
  4. Hash Tables — Use keys to find values, and see why different keys can share a bucket.
  5. Recursion — Solve a smaller version of a problem, then follow how the answers return.
  6. Divide and Conquer — Split a problem into smaller pieces, solve them, and combine their answers.
  7. Backtracking — Try a choice, explore what follows, and undo it before trying another.
  8. Merge Sort — Sort smaller halves, then merge them into one ordered row.
  9. Quick Sort — Choose a pivot and sort the items on each side of it.
  10. Heaps and Heap Sort — Keep the largest item at a heap's root, then use that rule to sort.
  11. Two Pointers — Use two positions to make progress through an ordered row.
  12. Sliding Window — Reuse the work from one consecutive group when moving to the next.
  13. Prefix Sums — Remember totals up to each position so range sums can be answered quickly.
  14. Binary Trees and Search Trees — Explore branching nodes, traversal orders, and the ordering rule of a binary search tree.
  15. Representing Graphs — Describe connections between places using vertices, edges, and adjacency lists.
  16. Breadth-First and Depth-First Search — Explore a graph layer by layer or follow one path before returning.
  17. Abstract Data Types, Bags, and Deques — Separate what a collection promises from how it stores its items.
  18. Linked Lists and Resizing Arrays — Compare one-way and two-way links with an array that grows when it fills.
  19. Shell Sort — Sort cards far apart first, then bring the gap down to one.
  20. Merge Sort Variants — Compare recursive splits, iterative merges, and safe merge optimisations.
  21. Partitioning and Quickselect — Divide values around a pivot, then keep only the side containing a wanted rank.
  22. Priority Queues and Multiway Merge — Remove items by priority and combine several already sorted streams.
  23. Symbol Tables and Sets — Associate keys with values, or remember which keys belong to a collection.
  24. Hash Collisions: Chaining and Linear Probing — Compare two ways to keep different keys that choose the same bucket.
  25. Fisher–Yates Shuffle — Rearrange a row randomly without confusing a shuffle with a sort.
  26. Connecting DSA Foundations — Connect recursion, trees, graphs, growth notation, and a first correctness argument.
  27. Invariants and Amortised Analysis — Keep a structure's rules true and count the cost of a sequence of operations.

Advanced

No published concepts at this level.

Expert

No published concepts at this level.