Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

DSA with Python

Authors
Affiliations
Birmingham City University
Sunway College Kathmandu

Welcome to DSA with Python.

This book is written for people who want to actually understand data structures and algorithms, not just memorize code. The focus is simple: clear thinking, solid fundamentals, and enough practice to make concepts stick.

You are expected to know basic Python syntax. Everything else is built from scratch, step by step, with explanations that connect ideas instead of throwing formulas at you.

Syllabus Tracker

Arrays and Lists

Practice Problems

Strings

Practice Problems

Linked Lists

Types of Linked Lists

Operations

Practice Problems

Stacks

Implementations

Practice Problems

Queues

Implementations

Practice Problems

Searching

Sorting

Recursion

Practice Problems

Hashing

Practice Problems

Problem Solving Patterns

Practice Problems

Trees

Traversals

Binary Search Tree

Practice Problems

Graphs

Shortest Path Algorithms

Advanced Algorithms

DAG Algorithms

State Space Graphs

Practice Problems

How to Use This Book

Read slowly. Implement everything yourself. If you can explain a solution without looking at code, you understand it. If not, revisit the topic.

DSA is not about speed at first. It is about clarity. Speed comes later.