Vizuara Books
Data Structures & Algorithms in Python
Free preview available. Sign in and subscribe to unlock the full book.
Vizuara AI Labs · intermediate

Data Structures & Algorithms in Python

The interview-grade DSA toolkit, coded from scratch in Python.

From Big-O to greedy algorithms, this book builds every core data structure and algorithmic pattern by hand in Python. Each chapter is a self-contained capsule that turns a Leetcode-style problem into a reusable technique you can carry into any interview.

intermediatedsaalgorithmspython
68 capsules245 figures~12 hoursby Dr. Raj Dandekar

Read on your Kindle or e-reader

Download the EPUB and read offline — perfect for the train. Works on Kindle, Kobo, Apple Books & more.

Send to Kindle →
00Foundations & Python Refresher7 capsules

Foundations & Python Refresher — 7 chapters.

01Why Data Structures & Algorithms?conceptfree11 min02Setting Up Python: Interpreter & REPLcodefree10 min03A Fast Tour of the Python Languagecode🔒10 min04Variables, Data Types, Casting & Operatorscode🔒13 min05Control Flow: Conditionals, Loops & Functionscode🔒12 min06Object-Oriented Python for Data Structurescode🔒10 min07Big-O: Time & Space Complexitymath🔒13 min
01Arrays & Matrices9 capsules

Arrays & Matrices — 9 chapters.

08Introduction to Python Arraysconcept🔒11 min09Reverse an Array & Rotate by D Placescode🔒13 min10Generate All Subarrays & Search Unsortedcode🔒11 min11Max, Min & K-th Smallest/Largestcode🔒13 min12Two Sum & Contains Duplicatecode🔒11 min13Introduction to 2D Arraysconcept🔒11 min14Transpose & Rotate a Matrixcode🔒11 min15Print a Matrix in Snake Patterncode🔒11 min16Spiral Traversal of a Matrixcode🔒12 min
02Strings, Sets & Dictionaries8 capsules

Strings, Sets & Dictionaries — 8 chapters.

17Introduction to Stringsconcept🔒11 min18All Substrings & Reverse a Stringcode🔒11 min19Palindrome String & Palindromic Substringscode🔒12 min20Remove Occurrences & Camel-Case a Sentencecode🔒14 min21Introduction to Setsconcept🔒12 min22Unique Characters & Pangram with Setscode🔒13 min23Introduction to Python Dictionariesconcept🔒11 min24Frequency Counting: Vowels, Uniques & Pangramcode🔒12 min
03Two Pointers & Sliding Window6 capsules

Two Pointers & Sliding Window — 6 chapters.

25The Two-Pointers Techniqueintuition🔒12 min26Remove Duplicates from a Sorted Arraycode🔒9 min27Boats to Save People (Leetcode 881)project🔒9 min28The Sliding-Window Techniqueintuition🔒11 min29Contains Duplicate II (Leetcode 219)code🔒10 min30Longest Substring Without Repeating Characterscode🔒9 min
04Searching, Sorting & Bit Manipulation8 capsules

Searching, Sorting & Bit Manipulation — 8 chapters.

31Linear Searchcode🔒10 min32Binary Search on a Sorted Arraymath🔒11 min33Bubble Sortcode🔒11 min34Selection Sortcode🔒12 min35Introduction to Bit Manipulationconcept🔒10 min36Single Element Among Doublescode🔒9 min37Counting Bitscode🔒9 min38Power of Twocode🔒11 min
05Stacks & Queues9 capsules

Stacks & Queues — 9 chapters.

39Introduction to the Stackconcept🔒10 min40Previous Smaller & Greater Elementcode🔒10 min41Valid Parenthesescode🔒10 min42Daily Temperaturescode🔒11 min43Introduction to the Queueconcept🔒10 min44Implement a Stack Using Queuescode🔒10 min45Implement a Queue Using Stackscode🔒10 min46Reverse First K Elements of a Queuecode🔒10 min47Sliding Window Maximumdeep-dive🔒10 min
06Linked Lists7 capsules

Linked Lists — 7 chapters.

48Introduction to the Linked Listconcept🔒10 min49Remove the N-th Node from the Endcode🔒11 min50Rotate a Linked Listcode🔒10 min51Reverse a Linked Listcode🔒10 min52Find the Middle of a Linked Listcode🔒9 min53Detect a Cycle (Floyd's Algorithm)math🔒10 min54Merge Two Sorted Linked Listscode🔒10 min
07Recursion & Backtracking6 capsules

Recursion & Backtracking — 6 chapters.

55Introduction to Recursionintuition🔒10 min56Recursive Traversal, Fibonacci & Factorialcode🔒11 min57Climbing Stairsmath🔒10 min58Generate All Subsequencescode🔒11 min59Follow the Knight: The Knight's Tourdeep-dive🔒10 min60Find All Permutationsproject🔒10 min
08Greedy Algorithms & Capstone8 capsules

Greedy Algorithms & Capstone — 8 chapters.

61Introduction to Greedy: Chocolate Distributionintuition🔒12 min62Minimum Platformscode🔒10 min63N Meetings in One Roomcode🔒9 min64Maximum Units on a Truckcode🔒10 min65Minimum Arrows to Burst Balloonscode🔒9 min66Gas Stationdeep-dive🔒11 min67Choosing the Right Patternintuition🔒11 min68Capstone: The Interview Playbookproject🔒9 min

Ratings & reviews

1,159 readers
4.2
154 ratings
544%
431%
314%
26%
16%
Rate this book
AM
Aarav Mehta
last week

Concise capsules I can finish over coffee, yet each one taught me something I actually use.

DO
Daniel Okafor
4 months ago

Rare mix of depth and readability. The worked examples are the clearest I have seen on this subject.

LC
Liam Chen
6 months ago

Best explanation of this topic I have found anywhere. The sidenotes fill in exactly the gaps I had.

MB
Marcus Bell
7 months ago

Dense but never confusing. Every chapter builds cleanly on the last — you can feel the care in the structure.