Foundations

Algorithms & Data Structures

Sorting, searching, graphs, trees, dynamic programming and computational complexity

4,003
lessons
Skills in this topic
View full skill map →
Algorithm Basics
beginner
Analyse time and space complexity with Big O
Sorting & Searching
beginner
Implement quicksort, mergesort, and heapsort
Hashing & Hash Functions
beginner
Explain the four properties of secure hash functions
Graph Algorithms
intermediate
Implement BFS and DFS iteratively and recursively
Dynamic Programming
intermediate
Identify overlapping subproblems
Advanced Algorithms
advanced
Implement backtracking for constraint problems
All Reads (692) Articles (77)Blog Posts (543)Tutorials (68)Research Papers (2)News (2)
Selection Sort Explained With a Bookshelf Story (With Code)
Dev.to · Krunal Kanojiya ⚡ Algorithms & Data Structures ⚡ AI Lesson 4d ago
Selection Sort Explained With a Bookshelf Story (With Code)
Two years ago I tried to arrange my bookshelf by height, shortest on the left. I had no plan. I just...
LeetCode Journal # 1
Dev.to · Fatima Qaisar ⚡ Algorithms & Data Structures ⚡ AI Lesson 5d ago
LeetCode Journal # 1
Documenting my daily LeetCode journey here! Today's Problem: 1512. Number of...
Traversal, Linear Search, Swapping, Shifting & More (Leetcode Code example)
Medium · Data Science ⚡ Algorithms & Data Structures ⚡ AI Lesson 1w ago
Traversal, Linear Search, Swapping, Shifting & More (Leetcode Code example)
Array Operations in Java and Scala: Continue reading on Data Science Collective »
The Rain Knows the Shortest Path
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1w ago
The Rain Knows the Shortest Path
Every raindrop on a pond is running the same algorithm you’ve been afraid of. Watch one fall. Continue reading on Medium »
Data Structures & Algorithms for Mobile App Developers
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1w ago
Data Structures & Algorithms for Mobile App Developers
As a Mobile Tech Lead, I’ve often noticed that most Data Structures & Algorithms (DSA) resources are written for general software… Continue reading on Medium »
Data Structures and Algorithms Deep‑Dive — Real-world Applications of Hash Tables (Chapter 3…
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1w ago
Data Structures and Algorithms Deep‑Dive — Real-world Applications of Hash Tables (Chapter 3…
Chapter 3 — Hash Tables and Hashing Continue reading on Medium »
Data Structures and Algorithms Deep‑Dive — Real-world Applications of Hash Tables (Chapter 3…
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 1w ago
Data Structures and Algorithms Deep‑Dive — Real-world Applications of Hash Tables (Chapter 3…
Chapter 3 — Hash Tables and Hashing Continue reading on Medium »
Day 29/100 Koko Eating Bananas  (Binary Search)
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1w ago
Day 29/100 Koko Eating Bananas (Binary Search)
Koko loves bananas, and there are several piles of them. She can decide her eating speed (k bananas/hour) and wants to finish all the… Continue reading on Mediu
O(N) Manacher's Algorithm with Mirror Boundary Optimization
Dev.to · Dipaditya Das ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
O(N) Manacher's Algorithm with Mirror Boundary Optimization
Intuition Manacher's Algorithm leverages the symmetry of palindromes to avoid redundant...
Building a Power Grid Inside Minecraft with BFS Algorithms
Dev.to · Carlos Cortez 🇵🇪 [AWS Hero] ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
Building a Power Grid Inside Minecraft with BFS Algorithms
Every cloud service needs power. AWS has data centers, Azure has regions, GCP has zones — and they're...
The Run-Length Encoding Trick: How Simple Strings Get Compressed
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
The Run-Length Encoding Trick: How Simple Strings Get Compressed
Have you ever wondered how your computer shrinks massive files down so they don’t absolutely wreck your hard drive? Continue reading on Medium »
75 Days of Leetcode — Day 4: #238 — Product of Array Except Self
Medium · AI ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
75 Days of Leetcode — Day 4: #238 — Product of Array Except Self
Day 4 is here. Product of Array Except Self is on the chopping block: Continue reading on Medium »
I implemented the algorithm that broke the sorting barrier. Dijkstra still wins.
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
I implemented the algorithm that broke the sorting barrier. Dijkstra still wins.
In 2025 a paper proved you can compute shortest paths asymptotically faster than Dijkstra. I built a verified implementation on a 2012… Continue reading on Medi
I implemented the algorithm that broke the sorting barrier. Dijkstra still wins.
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
I implemented the algorithm that broke the sorting barrier. Dijkstra still wins.
In 2025 a paper proved you can compute shortest paths asymptotically faster than Dijkstra. I built a verified implementation on a 2012… Continue reading on Medi
Practice Algorithms and DS the Structured Way
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Practice Algorithms and DS the Structured Way
Most algorithm practice is a pile of random problems. You get reps, but you never build a mental map of the techniques. So I built… Continue reading on AnotherA
Sieve of Eratosthenes Algorithm
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Sieve of Eratosthenes Algorithm
Finding the prime numbers between the 2 to n as given input(n) value. We know the usual solution for finding an number is prime or not in… Continue reading on M
The Binary Search Strikes Back: A Jedi's Guide to Finding Things Fast
Dev.to · Timevolt ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
The Binary Search Strikes Back: A Jedi's Guide to Finding Things Fast
The Quest Begins (The "Why") Honestly, I used to dread interview questions that started...
Palindrome Number(Easy) | LeetCode #2
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Palindrome Number(Easy) | LeetCode #2
5 ways to tackle the Palindrome Number Problem Continue reading on Medium »
Flood Fill — The Algorithm Behind Your Paint Bucket Tool
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Flood Fill — The Algorithm Behind Your Paint Bucket Tool
Ever clicked the paint bucket in MS Paint and watched a color spread across connected pixels? That’s flood fill. Let’s build it from… Continue reading on Medium
The Three Algorithm Families Behind Almost Every Generated Game World
Dev.to · Paul Crinigan ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
The Three Algorithm Families Behind Almost Every Generated Game World
Minecraft terrain, roguelike dungeons, and No Man's Sky planets all come from the same place: rules,...
Binary Search: The One Ring to Rule Them All
Dev.to · Timevolt ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Binary Search: The One Ring to Rule Them All
The Quest Begins (The "Why") I still remember the first time I faced a sorted array in an...
Reddit r/learnprogramming ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Rising junior CS/CompE student — 2 months to rebuild my DSA foundation before internship season. What's your actual game plan?
Hey everyone, I'm heading into my third year of computer engineering, and I'll be honest DSA has been the hardest part of my degree so far. I can follow along i
Morris Pre Order Traversal
Dev.to · Jaspreet singh ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Morris Pre Order Traversal
Problem Statement Given the root of a binary tree, return its preorder traversal. The...
Advanced Stack ApplicationsData Structures and Algorithms Deep‑Dive — Advanced Stack Applications…
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Advanced Stack ApplicationsData Structures and Algorithms Deep‑Dive — Advanced Stack Applications…
Chapter 2 — Basic Data Structures Continue reading on Medium »
The Minecraft anvil is a tree-cost optimization problem in disguise
Dev.to · Mark ⚡ Algorithms & Data Structures ⚡ AI Lesson 4w ago
The Minecraft anvil is a tree-cost optimization problem in disguise
I fell down this rabbit hole because of a small, annoying moment in a survival game. I had a diamond...
KMP Algorithm (Knuth-Morris-Pratt): The Smart Way to Perform String Matching in O(N)
Dev.to · Jaspreet singh ⚡ Algorithms & Data Structures ⚡ AI Lesson 4w ago
KMP Algorithm (Knuth-Morris-Pratt): The Smart Way to Perform String Matching in O(N)
Searching for a pattern inside a string is one of the oldest and most common problems in Computer...
Every Backtracking Problem Is the Same Three Lines. I Just Couldn't See the Tree.
Dev.to · Alex Mateo ⚡ Algorithms & Data Structures ⚡ AI Lesson 4w ago
Every Backtracking Problem Is the Same Three Lines. I Just Couldn't See the Tree.
I avoided backtracking for an embarrassingly long time. I had solved maybe 200 problems and could do...
DSA From Zero to Hero #3: Sliding Window (Fixed Size) Explained With a Java Example
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 4w ago
DSA From Zero to Hero #3: Sliding Window (Fixed Size) Explained With a Java Example
I used to solve every “subarray of size k” question with two nested loops. It worked. It also would have gotten me rejected in any real… Continue reading on ILL
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 4w ago
Two Pointers & Sliding Window: Turn O(n²) Into O(n)
Part 3 of the “Algorithms You Actually Use” series. A whole class of “check every pair / every subarray” problems looks like it needs… Continue reading on Mediu
Prefix Sum: The Pattern Behind Most Subarray Problems
Medium · JavaScript ⚡ Algorithms & Data Structures ⚡ AI Lesson 4w ago
Prefix Sum: The Pattern Behind Most Subarray Problems
Learn the intuition behind Prefix Sum, recognize it in interviews, and solve most subarray sum problems with confidence. Continue reading on Medium »
Thinking in algorithms - A Different Way to Think About the Task Scheduler Problem
Dev.to · Kushagra Mehrotra ⚡ Algorithms & Data Structures ⚡ AI Lesson 4w ago
Thinking in algorithms - A Different Way to Think About the Task Scheduler Problem
I recently came across the classic CPU Task Scheduler problem on HackerRank. You are given an...
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Hash Maps: The Data Structure You’ll Use Most
Part 1 of the “Algorithms You Actually Use” series. If you learn exactly one data structure deeply, make it this one. It turns slow code… Continue reading on Me
Merge Overlapping Intervals on a Line Scale Using Python, LeetCode 56
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Merge Overlapping Intervals on a Line Scale Using Python, LeetCode 56
If you have ever come across this question and wanted to solve it, then this article will help you grasp a few concepts that can enable… Continue reading on Med
Two Pointers: The Pattern Behind Countless Coding Interview Problems
Medium · JavaScript ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Two Pointers: The Pattern Behind Countless Coding Interview Problems
If you’ve solved a few LeetCode problems, chances are you’ve already used the Two Pointers pattern — even if you didn’t know its name. Continue reading on Mediu
Another Binary Search Problem That Looked Easy… Until the Last Condition
Medium · JavaScript ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Another Binary Search Problem That Looked Easy… Until the Last Condition
I recently solved Find Smallest Letter Greater Than Target, and this problem reminded me that sometimes one line in the problem statement… Continue reading on M
Reddit r/learnprogramming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
where to learn bcktracking from?
I want to learn backtracking in Python, but I'm finding it really hard to understand the thought process behind it. I tried watching Aditya Verma's backtracking
Reddit r/MachineLearning ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Do we still need to study algorithms now that AI writes most of our code? [D]
I've been thinking about this for a while. AI can now write functions, explain code, refactor projects, generate tests, and even solve many programming problems
The Bitwise Jedi: Mastering the XOR Trick Like a Lightsaber
Dev.to · Timevolt ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
The Bitwise Jedi: Mastering the XOR Trick Like a Lightsaber
The Quest Begins (The "Why") I still remember the first time I faced a coding interview...
Reddit r/programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Domino Tiling: From Dynamic Programming to Finite Fields
https://www.omegasyntax.com/domino/ Series of articles about Domino Tiling problem. submitted by /u/eugene [link] [comments]
DSA From Zero to Hero #2: Two Pointers Approach Explained with Example
Medium · JavaScript ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
DSA From Zero to Hero #2: Two Pointers Approach Explained with Example
The approach that cuts your time complexity in half — and most developers have never heard of it. Continue reading on Medium »
DSA From Zero to Hero #2: Two Pointers Approach Explained with Example
Medium · JavaScript ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
DSA From Zero to Hero #2: Two Pointers Approach Explained with Example
The approach that cuts your time complexity in half — and most developers have never heard of it. Continue reading on Stackademic »
Pseudocode: Cara Terbaik Merancang Algoritma Sebelum Menulis Kode Sungguhan
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Pseudocode: Cara Terbaik Merancang Algoritma Sebelum Menulis Kode Sungguhan
Di artikel sebelumnya kita sudah memahami apa itu algoritma dan bagaimana cara menyusunnya. Kali ini kita akan membahas cara menuliskan… Continue reading on Med
Bloom Filters, Explained Properly
Dev.to · Daksh Gargas ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Bloom Filters, Explained Properly
How it actually works!
Data structures interview questions: what each one predicts on the job
Dev.to · Frank @ Four-Leaf ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Data structures interview questions: what each one predicts on the job
What each data structure in a coding interview screens for, the on-the-job behavior it predicts, and the signal your first sentences send.
Time vs. Space Complexity: Kenapa Ini Penting Banget Buat Aplikasi Lo (Bukan Cuma Buat Ujian!)
Dev.to · Ogak Dev ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Time vs. Space Complexity: Kenapa Ini Penting Banget Buat Aplikasi Lo (Bukan Cuma Buat Ujian!)
Halo para developer kece! 👋 Pernah nggak sih lo ngerasa aplikasi yang udah susah payah lo bikin kok...
Google Onsite Interview Question #1: Distance to the Nearest 1 in a Binary Matrix
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Google Onsite Interview Question #1: Distance to the Nearest 1 in a Binary Matrix
Not a Medium member? Use the free link below. Continue reading on Medium »
Learning DSA? Avoid the Mistake That Wasted My Years
Medium · JavaScript ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Learning DSA? Avoid the Mistake That Wasted My Years
Why DSA feels impossible, why most beginners practice it wrongly, and how to build interview-ready problem-solving skills without blindly… Continue reading on D
3 Data Structures That Finally Made Sense the Day I Got Stuck in a McDonald’s Drive-Through for 31…
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
3 Data Structures That Finally Made Sense the Day I Got Stuck in a McDonald’s Drive-Through for 31…
Hi everyone, I am Nitin Gavhane and in this blog I want to tell you about the evening a McDonald’s drive-through turned into an accidental… Continue reading on