Skip to content
Python Interview Cookbook
Word Break
Initializing search
GitHub
Python Interview Cookbook
GitHub
Home
Preface
Preface
Why This Book
How To Use This Cookbook
Learning Roadmap
Python Foundations
Python Foundations
Introduction
Why Python For Coding Interviews
Variables Objects And References
Python Memory Model
Mutable Vs Immutable
Assignment Vs Copying
Equality Vs Identity
Truthy And Falsy
Type Conversion
Operators Used In Dsa
Membership Operators
Common Python Pitfalls
Python Complexity Reference
Strings
Strings
Introduction
Creating Strings
Indexing And Slicing
Lower Upper Casefold
Strip Lstrip Rstrip
Split
Join
Replace
Find Index Count
String Validation Methods
String Formatting
Removing Special Characters
Ord And Chr
Ascii And Unicode
Manual String Manipulation
String Performance
Interview Recipes
Lists And Arrays
Lists And Arrays
Introduction
Python Lists
List Methods
Dynamic Arrays
Indexing And Slicing
List Comprehensions
Multidimensional Lists
Sorting Lists
Unpacking
Enumerate
Zip
Interview Recipes
Dictionaries
Dictionaries
Introduction
Hash Tables
Python Dictionaries
Dictionary Methods
Dictionary Comprehensions
Frequency Maps
Manual Hash Map
Interview Recipes
Sets
Sets
Introduction
Hashing
Python Sets
Set Operations
Frozenset
Interview Recipes
Collections
Collections
Introduction
Deque
Counter
Defaultdict
Chainmap
Namedtuple
Ordereddict
Interview Recipes
Standard Library
Standard Library
Introduction
Heapq
Bisect
Itertools
Functools
Math
Operator
Interview Recipes
Builtins
Builtins
Introduction
Any And All
Iter And Next
Map
Filter
Sorted
Sum Min Max
Interview Recipes
Sorting
Sorting
Introduction
Sort Vs Sorted
Timsort
Stable Sorting
Custom Sorting
Interview Recipes
Algorithmic Patterns
Algorithmic Patterns
Introduction
Two Pointers
Sliding Window
Prefix Sum
Difference Array
Binary Search
Fast And Slow Pointers
Linked List
Stack
Monotonic Stack
Queue
Monotonic Queue
Heaps
Trees
Binary Search Tree
Tries
Graphs
Topological Sort
Union Find
Greedy
Dynamic Programming
Bit Manipulation
Backtracking
Interview Templates
Interview Templates
Introduction
Two Pointers Template
Sliding Window Template
Binary Search Template
Bfs Template
Dfs Template
Graph Template
Heap Template
Dynamic Programming Template
Interview Pitfalls
Interview Pitfalls
Introduction
Shallow Vs Deep Copy
Mutable Default Arguments
Off By One Errors
Recursion Limit
Time Complexity Traps
Memory Pitfalls
Performance Optimizations
Python Tricks
Useful One Liners
Recursion
Recursion
Introduction
Recursion Basics
Recursion Tree
Base Case
Call Stack
Tail Recursion
Recursion Vs Iteration
Backtracking Vs Recursion
Common Patterns
Interview Recipes
Bit Manipulation
Bit Manipulation
Introduction
Binary Numbers
Bitwise Operators
Xor Tricks
Bit Masks
Checking Powers Of Two
Counting Bits
Subsets Using Bits
Interview Recipes
Mathematics
Mathematics
Introduction
Gcd And Lcm
Prime Numbers
Sieve Of Eratosthenes
Modular Arithmetic
Fast Exponentiation
Combinatorics
Probability Basics
Interview Recipes
Systematic Problem Solving
Systematic Problem Solving
Introduction
Reading The Problem
Identifying Patterns
Choosing Data Structures
Choosing Algorithms
Complexity Analysis
Dry Running
Debugging Under Pressure
Communicating Your Solution
Interview Recipes
Leetcode Patterns
Leetcode Patterns
Introduction
Easy Roadmap
Medium Roadmap
Hard Roadmap
Blind 75
Neetcode 150
Grind 75
Company Patterns
Interview Recipes
Faang Interview Guide
Faang Interview Guide
Introduction
Coding Round
Online Assessment
Behavioral Round
Pair Programming
Whiteboard Vs Editor
Communicating Thinking
Handling Hints
Common Interviewer Expectations
Interview Checklist
Real Interview Walkthroughs
Real Interview Walkthroughs
Introduction
Valid Anagram
Two Sum
Group Anagrams
Longest Substring
Top K Frequent
Merge Intervals
Number Of Islands
Lru Cache
Word Break
Median Of Two Sorted Arrays
Capstone
Capstone
Introduction
Complete Python Cheat Sheet
Interview Day Checklist
Common Python Snippets
Template Library
Complexity Master Table
Standard Library Summary
Final Learning Path
Where To Go Next
Appendix
Appendix
Ascii Table
Unicode Reference
Collections Cheat Sheet
Heapq Cheat Sheet
Bisect Cheat Sheet
Itertools Cheat Sheet
Complexity Cheat Sheet
Leetcode Pattern Guide
Big Tech Interview Checklist
Word Break
Back to top