Data Structures & Algorithms: Foundations

The 80% every engineer needs, from first principles. Complexity, the memory hierarchy, the core structures, and the algorithms built on each.

Lessons
17
Modules
5
Running time
4h 34m
Before you start
Comfortable reading code
Free to watch
Every lesson
Last updated
Jun 22, 2026

Part of

[01] Who it's for

  • Self-taught developers filling in the computer science they skipped.
  • Engineers who learned data structures once and want the cost model behind them, not just the names.
  • Anyone who wants to know why one data structure is faster than another, instead of memorizing patterns.

[02] What you'll learn

  • 01Reason about big-O, amortized cost, and why the memory hierarchy makes arrays fast
  • 02Build every core structure from scratch: dynamic arrays, hash tables, trees, heaps
  • 03Reach for two pointers, sliding window, and binary search without thinking
  • 04Implement merge, quick, and heap sort and know which one a real library reaches for
  • 05Traverse graphs with BFS and DFS, the patterns every later graph algorithm builds on

[03] Syllabus

Module 01

The cost of everything

4 lessons53 min
  1. 01
    14m
  2. 02
    14m
  3. 03
    13m
  4. 04
    13m
  5. Module quiz

    5 questions, about 5 minutes

Module 02

Linear structures and their patterns

4 lessons69 min
  1. 05
    17m
  2. 06
    16m
  3. 07
    17m
  4. 08
    19m
  5. Module quiz

    5 questions, about 5 minutes

Module 03

Recursion and sorting

3 lessons49 min
  1. 09
    14m
  2. 10
    21m
  3. 11
    14m
  4. Module quiz

    5 questions, about 5 minutes

Module 04

Hashing and trees

4 lessons66 min
  1. 12
    17m
  2. 13
    16m
  3. 14
    16m
  4. 15
    17m
  5. Module quiz

    5 questions, about 5 minutes

Module 05

First steps into graphs

2 lessons37 min
  1. 16
    14m
  2. 17
    23m
  3. Module quiz

    5 questions, about 5 minutes

  1. Certificate

    Finish every lesson and pass every module quiz

[04] Questions

Is this just LeetCode prep?
Interview readiness is a side effect, not the goal. Each structure is taught with the production system it powers, so you understand why it exists, not just how to pass a test.
What language is the code in?
Lessons teach with pseudocode and diagrams so the idea stays language-agnostic. The written companion below each video carries full TypeScript, Go, and C++ implementations.
What if I can't afford a plan?
Email mail@karnstack.com from a student address (.edu, .ac.in, or equivalent) and we'll work something out.
Is there a refund?
Yes. 7 days, no questions, mail@karnstack.com.

[05] How it's made

The curriculum is curated by karnstack and reviewed by senior engineers in the industry before it ships. Narration is an AI voice (ElevenLabs) reading human-written, human-reviewed scripts. Read how courses are made.