Skip to content
Navigation menu
Search
Powered by Algolia
Search
Log in
Create account
DEV Community
Close
DSA & Algorithms in Python Series' Articles
Back to Bimal Kshetri's Series
The Complete DSA and Algorithms Series in Python: Every Post, In Order
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The Complete DSA and Algorithms Series in Python: Every Post, In Order
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
8 min read
What Is DSA? Data Structures and Algorithms Explained for Complete Beginners
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
What Is DSA? Data Structures and Algorithms Explained for Complete Beginners
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
16 min read
Python From Zero: The Complete Beginner's Guide to the Language
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Python From Zero: The Complete Beginner's Guide to the Language
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
46 min read
Big O Notation: How to Measure an Algorithm Without Running It
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Big O Notation: How to Measure an Algorithm Without Running It
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
23 min read
Bubble Sort in Python: The Algorithm Everyone Learns First
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Bubble Sort in Python: The Algorithm Everyone Learns First
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
11 min read
Selection Sort in Python: The Fewest Swaps of Any Simple Sort
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Selection Sort in Python: The Fewest Swaps of Any Simple Sort
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
15 min read
Insertion Sort in Python: The Fast One Nobody Expects
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Insertion Sort in Python: The Fast One Nobody Expects
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
16 min read
Merge Sort in Python: Guaranteed O(n log n), Every Single Time
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Merge Sort in Python: Guaranteed O(n log n), Every Single Time
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
17 min read
Quick Sort in Python: The Fastest Sort in Practice, and Its One Weakness
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Quick Sort in Python: The Fastest Sort in Practice, and Its One Weakness
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
18 min read
Heap Sort in Python: O(n log n) Without Using Extra Memory
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Heap Sort in Python: O(n log n) Without Using Extra Memory
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
18 min read
Counting Sort in Python: Sorting Without Comparing Anything
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Counting Sort in Python: Sorting Without Comparing Anything
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
21 min read
Radix Sort in Python: Sorting Digit by Digit, Faster Than O(n log n)
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Radix Sort in Python: Sorting Digit by Digit, Faster Than O(n log n)
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
17 min read
Timsort: The Algorithm Behind Python's sorted() and list.sort()
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Timsort: The Algorithm Behind Python's sorted() and list.sort()
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
24 min read
Linear Search in Python: The Simplest Algorithm, and When It's Still Right
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Linear Search in Python: The Simplest Algorithm, and When It's Still Right
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
15 min read
Binary Search in Python: Halving the Problem Every Step
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Binary Search in Python: Halving the Problem Every Step
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
21 min read
Arrays and Dynamic Arrays: How Python Lists Actually Work
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Arrays and Dynamic Arrays: How Python Lists Actually Work
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
18 min read
Linked Lists in Python: Singly, Doubly, and Circular, From Scratch
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Linked Lists in Python: Singly, Doubly, and Circular, From Scratch
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
22 min read
Stacks in Python: Last In, First Out, and Where You Already Use One
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Stacks in Python: Last In, First Out, and Where You Already Use One
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
17 min read
Queues and Deques in Python: FIFO, Ring Buffers, and collections.deque
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Queues and Deques in Python: FIFO, Ring Buffers, and collections.deque
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
19 min read
Hash Tables in Python: How Dictionaries Get O(1) Lookups
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Hash Tables in Python: How Dictionaries Get O(1) Lookups
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
22 min read
Binary Search Trees in Python: Ordered Data That Stays Fast
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Binary Search Trees in Python: Ordered Data That Stays Fast
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
18 min read
AVL Trees and Self-Balancing: Fixing the Binary Search Tree's Worst Case
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
AVL Trees and Self-Balancing: Fixing the Binary Search Tree's Worst Case
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
26 min read
Heaps and Priority Queues in Python: Always Knowing the Smallest Item
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Heaps and Priority Queues in Python: Always Knowing the Smallest Item
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
26 min read
Tries in Python: The Data Structure Behind Autocomplete
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Tries in Python: The Data Structure Behind Autocomplete
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
20 min read
Union-Find (Disjoint Set) in Python: Tracking Connected Things Fast
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Union-Find (Disjoint Set) in Python: Tracking Connected Things Fast
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
23 min read
Graphs in Python: Adjacency Lists, Matrices, and Which to Use
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Graphs in Python: Adjacency Lists, Matrices, and Which to Use
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
20 min read
Breadth-First Search (BFS) in Python: Shortest Paths, Level by Level
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Breadth-First Search (BFS) in Python: Shortest Paths, Level by Level
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
18 min read
Depth-First Search (DFS) in Python: Going Deep Before Going Wide
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Depth-First Search (DFS) in Python: Going Deep Before Going Wide
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
21 min read
Dijkstra's Algorithm in Python: Shortest Paths With Weighted Edges
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Dijkstra's Algorithm in Python: Shortest Paths With Weighted Edges
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
19 min read
Bellman-Ford in Python: Shortest Paths When Edges Can Be Negative
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Bellman-Ford in Python: Shortest Paths When Edges Can Be Negative
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
23 min read
Floyd-Warshall in Python: Shortest Paths Between Every Pair of Nodes
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Floyd-Warshall in Python: Shortest Paths Between Every Pair of Nodes
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
22 min read
A* Search in Python: Dijkstra With a Sense of Direction
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
A* Search in Python: Dijkstra With a Sense of Direction
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
23 min read
Minimum Spanning Trees in Python: Kruskal's and Prim's Algorithms
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Minimum Spanning Trees in Python: Kruskal's and Prim's Algorithms
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
24 min read
Topological Sort in Python: Ordering Tasks That Depend on Each Other
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Topological Sort in Python: Ordering Tasks That Depend on Each Other
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
19 min read
Dynamic Programming Explained: Memoization, Tabulation, and How to Spot It
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Dynamic Programming Explained: Memoization, Tabulation, and How to Spot It
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
19 min read
The 0/1 Knapsack Problem in Python: The Classic DP Every Interview Uses
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The 0/1 Knapsack Problem in Python: The Classic DP Every Interview Uses
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
21 min read
Longest Common Subsequence in Python: How diff Tools Work
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Longest Common Subsequence in Python: How diff Tools Work
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
17 min read
Edit Distance (Levenshtein) in Python: Measuring How Different Two Strings Are
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Edit Distance (Levenshtein) in Python: Measuring How Different Two Strings Are
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
20 min read
The Coin Change Problem in Python: Where Greedy Fails and DP Wins
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The Coin Change Problem in Python: Where Greedy Fails and DP Wins
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
21 min read
Greedy Algorithms Explained: When Taking the Best Option Now Actually Works
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Greedy Algorithms Explained: When Taking the Best Option Now Actually Works
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
17 min read
Huffman Coding in Python: How Compression Actually Compresses
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Huffman Coding in Python: How Compression Actually Compresses
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
23 min read
Recursion and Backtracking in Python: Building the Mental Model
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Recursion and Backtracking in Python: Building the Mental Model
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
19 min read
The N-Queens Problem in Python: Backtracking at Its Clearest
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The N-Queens Problem in Python: Backtracking at Its Clearest
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
18 min read
The KMP Algorithm in Python: String Search Without Ever Going Backwards
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The KMP Algorithm in Python: String Search Without Ever Going Backwards
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
19 min read
Rabin-Karp in Python: Finding Substrings With Rolling Hashes
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Rabin-Karp in Python: Finding Substrings With Rolling Hashes
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
19 min read
The Euclidean Algorithm in Python: The Oldest Algorithm Still in Daily Use
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The Euclidean Algorithm in Python: The Oldest Algorithm Still in Daily Use
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
18 min read
Sieve of Eratosthenes in Python: Every Prime Under a Million, Fast
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Sieve of Eratosthenes in Python: Every Prime Under a Million, Fast
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
20 min read
Fast Exponentiation in Python: Computing Huge Powers in log n Steps
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Fast Exponentiation in Python: Computing Huge Powers in log n Steps
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
15 min read
The Two Pointers Technique in Python: Turning O(n ) Into O(n)
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The Two Pointers Technique in Python: Turning O(n ) Into O(n)
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
20 min read
The Sliding Window Technique in Python: Subarray Problems Made Linear
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
The Sliding Window Technique in Python: Subarray Problems Made Linear
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
22 min read
Prefix Sums in Python: Answering Range Queries in Constant Time
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Prefix Sums in Python: Answering Range Queries in Constant Time
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
20 min read
Building an LRU Cache in Python: The Data Structure Behind Every Cache
Bimal Kshetri
Bimal Kshetri
Bimal Kshetri
Follow
Aug 16
Building an LRU Cache in Python: The Data Structure Behind Every Cache
#
algorithms
#
datastructures
#
python
#
beginners
Comments
Add Comment
22 min read
We're a place where coders share, stay up-to-date and grow their careers.
Log in
Create account