PDSA Interactive Book
IIT Madras BS · BSCS2002 · Diploma level

Programming, Data Structures & Algorithms — you can play with.

Every chapter follows the official 12-week syllabus: short explanations, code you can run, visualisers you can step through, questions with instant feedback, and LeetCode problems matched to each topic. Don't just read an algorithm — watch it work, then predict what it does next.

14Chapters
55Visualisers
283Questions
0/283Solved
0/116LeetCode done

Start with Week 1 →  

Chapters

Practice tools

▶ Visualisers
Step, play, pause and change the input. Break things on purpose — sorted input, duplicate keys, empty lists.
? Questions
Multiple choice, type-the-answer, put-the-steps-in-order and predict the output. Output answers are produced by actually running the code.
▤ Reading modes
Light, Dark, or a warm serif Reading mode for long sessions. Progress is saved in your browser.
⌨ Run Python
Editable code cells run in your browser (Pyodide, loads on first use). Press Ctrl/⌘+Enter to run.

PDSA Interactive Book · Programming, Data Structures and Algorithms using Python (BSCS2002), IIT Madras BS Degree Programme.
Created by Ammar Hashmi · © 2026. An unofficial study companion — the syllabus follows the official course page and the examples are built around the PDSA Online Textbook; lectures by Prof. Madhavan Mukund (CMI). Always cross-check with the official course material.
Found a mistake or have a suggestion? Report it on GitHub ↗ · Press / to search.