Foundations

Algorithms & Data Structures

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

4,700
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 (1,013) Articles (224)Blog Posts (612)Tutorials (165)Research Papers (3)News (9)
How I Finally Learnt to Solve Coding Interview Questions
Dev.to · Cathy Lai ⚡ Algorithms & Data Structures 1d ago
How I Finally Learnt to Solve Coding Interview Questions
So you have an algorithmic coding interview coming up... You know the standard advice: think out...
Arrays in JavaScript
Dev.to · Abimanyu P ⚡ Algorithms & Data Structures 2w ago
Arrays in JavaScript
Arrays and its methods in JavaScript An array in JavaScript is a data structure used to...
Invert a Binary Tree: What the Interview Question Really Tests
Dev.to · jidonglab ⚡ Algorithms & Data Structures 2w ago
Invert a Binary Tree: What the Interview Question Really Tests
The invert a binary tree interview question is 5 lines of code. Here's what interviewers actually score and why good devs fail it.
Reliable SMS OTP Delivery for Beginner 2FA Login in US/EU SaaS
Dev.to · SaxonFletcher2361 ⚡ Algorithms & Data Structures 2w ago
Reliable SMS OTP Delivery for Beginner 2FA Login in US/EU SaaS
A beginner 2FA login stack for a US/EU SaaS can use SMS OTP, but reliability depends on the queue...
The Hidden Cost Of A Line of Code
Dev.to · Mona Moxie ⚡ Algorithms & Data Structures 2w ago
The Hidden Cost Of A Line of Code
"Given an integer array nums, return true if any value appears at least twice in the array, and...
I Didn't "Learn" Sliding Window — I Got Cornered Into It
Dev.to · Amish Singh ⚡ Algorithms & Data Structures 2w ago
I Didn't "Learn" Sliding Window — I Got Cornered Into It
The Problem Given nums list and k operations, where one operation increments one element...
XGBoost Explained: From Gradient Boosting to Weighted Quantile Sketch
Dev.to · arham ahmed ⚡ Algorithms & Data Structures 2w ago
XGBoost Explained: From Gradient Boosting to Weighted Quantile Sketch
XGBoost Introduction: XGBoost XGBoost is a tree-based algorithm. It is a...
How BitTorrent Turned Every Downloader Into a Server
Dev.to · Athreya aka Maneshwar ⚡ Algorithms & Data Structures 2w ago
How BitTorrent Turned Every Downloader Into a Server
Hello, I'm Maneshwar. I'm building git-lrc, a Micro AI code reviewer that runs on every commit. It is...
What I learned writing 1,096 tests for algorithm animations
Dev.to · Nav ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
What I learned writing 1,096 tests for algorithm animations
I spent the last few months building visual walkthroughs for data structures and algorithms. Not...
Kademlia: Algo That Turned XOR Distance Into a Network
Dev.to · Athreya aka Maneshwar ⚡ Algorithms & Data Structures 3w ago
Kademlia: Algo That Turned XOR Distance Into a Network
Hello, I'm Maneshwar. I'm building git-lrc, a Micro AI code reviewer that runs on every commit. It is...
Learn Valid Parentheses, Reverse Linked List, and Tree Max Depth with Step-by-Step Visualization in DSA View View 👀👀
Dev.to · nyaomaru ⚡ Algorithms & Data Structures 3w ago
Learn Valid Parentheses, Reverse Linked List, and Tree Max Depth with Step-by-Step Visualization in DSA View View 👀👀
Hoi hoi! I’m @nyaomaru, a frontend engineer who struggles to make game sounds. 😿 Have you used DSA...
The Algorithm Behind "Are You Also Experiencing X?"
Dev.to · Lavitra ⚡ Algorithms & Data Structures 3w ago
The Algorithm Behind "Are You Also Experiencing X?"
A symptom checker that only reads one message and immediately names a diagnosis is not doing anything...
Building a TypeScript Code Radar: What an AST Reveals That Text Search Misses
Dev.to · akamabe ⚡ Algorithms & Data Structures 3w ago
Building a TypeScript Code Radar: What an AST Reveals That Text Search Misses
Today I started experimenting with Tree-sitter. I had heard the name before, but I had never...
Bloom Filters Explained: How a Tiny Bit Array Can Handle Millions of Lookups
Dev.to · uttesh ⚡ Algorithms & Data Structures 3w ago
Bloom Filters Explained: How a Tiny Bit Array Can Handle Millions of Lookups
Imagine you are running a website with 100 million registered users. Every time someone enters a...
Construyendo un recomendador de emparejamiento de expertos
Dev.to · Franchesco Romero ⚡ Algorithms & Data Structures 3w ago
Construyendo un recomendador de emparejamiento de expertos
La forma del problema Un directorio es una superficie: el miembro lo abre y adivina. Un...
Dynamic Programming: The Matrix of Patterns
Dev.to · Timevolt ⚡ Algorithms & Data Structures ⚡ AI Lesson 3w ago
Dynamic Programming: The Matrix of Patterns
The Quest Begins (The "Why") I still remember the first time I saw a dynamic programming...
Recursion clicks the moment you can see the call stack
Dev.to · Divyakush Punjabi ⚡ Algorithms & Data Structures 3w ago
Recursion clicks the moment you can see the call stack
Recursion is where people decide they're 'not a math person' — because it's an invisible, moving process taught with static code. Animate the stack growing and
People can't visualize data structures — so I built one you can watch
Dev.to · Divyakush Punjabi ⚡ Algorithms & Data Structures 3w ago
People can't visualize data structures — so I built one you can watch
Data structures are taught as static diagrams for things that move. AlgoVerse turns algorithms into animated 3D scenes you can watch think.
Vector Search Algorithms (HNSW)
Dev.to · Aviral Srivastava ⚡ Algorithms & Data Structures 3w ago
Vector Search Algorithms (HNSW)
Navigating the Infinite: How HNSW Helps Us Find Needles in a Haystack (of...
Building a Fast Word Unscrambler: The Algorithm Behind Anagram Solving
Dev.to · Word Scrambler ⚡ Algorithms & Data Structures 3w ago
Building a Fast Word Unscrambler: The Algorithm Behind Anagram Solving
I recently built WordScrambler, a free tool for unscrambling letters and solving anagrams, mostly out...
How I Got a Job Offer as a Fresher in an AI-Fearing Market — Without LeetCode or Club Leaderships on My Resume
Dev.to · Dhruv Jani ⚡ Algorithms & Data Structures 4w ago
How I Got a Job Offer as a Fresher in an AI-Fearing Market — Without LeetCode or Club Leaderships on My Resume
I didn't have an impressive LeetCode profile. I wasn't a club president. I didn't have a stack of...
The LeetCode Journey: Mastering Two Pointers Like a Jedi
Dev.to · Timevolt ⚡ Algorithms & Data Structures 4w ago
The LeetCode Journey: Mastering Two Pointers Like a Jedi
The Quest Begins (The "Why") Honestly, I still remember the first time I opened LeetCode...
LeetCode 151: Reverse Words in a String in Go
Dev.to · Fer Rios ⚡ Algorithms & Data Structures 4w ago
LeetCode 151: Reverse Words in a String in Go
The problem that looks simple until the whitespace shows up You open LeetCode 151 —...
Building a Location-Aware Discovery Engine: Why “Nearby” Isn't Just Distance
Dev.to · Lee X ⚡ Algorithms & Data Structures 1mo ago
Building a Location-Aware Discovery Engine: Why “Nearby” Isn't Just Distance
"Nearby" sounds like a simple feature. Calculate the distance between the user and every...
Recursion vs Iteration: Choosing Your Path Like Neo in *The Matrix*
Dev.to · Timevolt ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Recursion vs Iteration: Choosing Your Path Like Neo in *The Matrix*
The Quest Begins (The “Why”) I still remember the first time I stared at a binary tree...
I've been implementing NAND-tree quantum algorithm in Qiskit Python
Dev.to · mrcnm ⚡ Algorithms & Data Structures 1mo ago
I've been implementing NAND-tree quantum algorithm in Qiskit Python
So, recently I started working with the Qiskit, a python library for quantum computing. Thankfully,...
Algorithmic Patterns: The Ultimate Guide to Sliding Window
Dev.to · The Architect ⚡ Algorithms & Data Structures 1mo ago
Algorithmic Patterns: The Ultimate Guide to Sliding Window
The Sliding Window pattern is one of the most vital algorithmic techniques for optimizing array and...
how Git detect changes
Dev.to · EL HADDAD Mohamed ⚡ Algorithms & Data Structures 1mo ago
how Git detect changes
Have you ever wondered why 𝑮𝒊𝒕 is so smart at detecting changes, even with the smallest tweaks or...
Recursion vs Iteration: Choosing Your Path Like Neo in The Matrix
Dev.to · Timevolt ⚡ Algorithms & Data Structures 1mo ago
Recursion vs Iteration: Choosing Your Path Like Neo in The Matrix
The Quest Begins (The "Why") I was knee‑deep in a coding interview when the interviewer...
A top-10 list was the wrong answer, so I used greedy set cover instead
Dev.to · horus he ⚡ Algorithms & Data Structures 1mo ago
A top-10 list was the wrong answer, so I used greedy set cover instead
I had a ranking problem that looked trivial and turned out to have the wrong shape. Contexto is a...
The Mathematics of Multi-Touch Attribution in High-Velocity Partner Networks
Dev.to · WP Triumph ⚡ Algorithms & Data Structures 1mo ago
The Mathematics of Multi-Touch Attribution in High-Velocity Partner Networks
Why Last-Click Attribution Breaks Down at Scale (and How to Fix It) In performance...
How Garbage Collection Works: Let's Build One From Scratch
Dev.to · Aditya Sharma ⚡ Algorithms & Data Structures 1mo ago
How Garbage Collection Works: Let's Build One From Scratch
Introduction Your program keeps creating objects. Every function call, every loop...
An O(1) Space Alternative to "Rearrange Array Alternately" Using Sequential Suffix Reversal
Dev.to · Juhi Gherkar ⚡ Algorithms & Data Structures 1mo ago
An O(1) Space Alternative to "Rearrange Array Alternately" Using Sequential Suffix Reversal
An O(1) space alternative to the classic Rearrange Array Alternately problem, using repeated suffix reversal instead of the usual modulo trick.
Designing a Solvability Gate for 15 Puzzle Implementations
Dev.to · Tea-sip ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Designing a Solvability Gate for 15 Puzzle Implementations
Every 15-puzzle implementation eventually hits the same quiet question: given a starting arrangement,...
Generating a Crossword in the Browser: Why Grid Backtracking Fails and What Works Instead
Dev.to · Andrea Roversi ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Generating a Crossword in the Browser: Why Grid Backtracking Fails and What Works Instead
I wanted to add a crossword to my site's games, generated differently every round instead of pulled...
I Built a Free 0/1 Knapsack Solver API (with a New Heuristic)
Dev.to · 1111001001111 ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
I Built a Free 0/1 Knapsack Solver API (with a New Heuristic)
Hi everyone 👋 Over the past few months I’ve been working on a small optimization engine for the...
Building a Local-First Interview Prep Gym to skill growth
Dev.to · Rakshyak Satpathy ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Building a Local-First Interview Prep Gym to skill growth
Interview prep usually fails from missing rhythm, not missing problems. I had study plans, LeetCode lists, and scattered notes — but no single system that turne
Porting natsort to Rust taught me that "it compiles" is the easy 5%
Dev.to · codewitharyan29 ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Porting natsort to Rust taught me that "it compiles" is the easy 5%
TL;DR: I ported Python's natsort library to Rust for Port Mortem 2026. Writing the sorting algorithm...
Majority Element II: 4 Hardware & C++ Insights You Won't Find in the Editorial
Dev.to · Shigeo Kageyama ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Majority Element II: 4 Hardware & C++ Insights You Won't Find in the Editorial
You can find hundreds of tutorials explaining the Extended Boyer-Moore Voting Algorithm. I won't bore...
LLD Data Structures in Design Context: Trie — A Data Structure Designed for Prefix Search
Dev.to · Saras Growth Space ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
LLD Data Structures in Design Context: Trie — A Data Structure Designed for Prefix Search
"A Trie isn't designed to store words. It's designed to make finding everything that shares the same...
Why I built axioma: A zero-allocation, division-free universal compression algorithm
Dev.to · Murad Abbasov ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Why I built axioma: A zero-allocation, division-free universal compression algorithm
Btw , here’s a fun fact: while some people build projects on 64-core monsters with 128 GB of RAM,...
Why Your JavaScript Sums Are Wrong (And How to Fix Them)
Dev.to · Piyush Chauhan ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Why Your JavaScript Sums Are Wrong (And How to Fix Them)
You know that Array.prototype.reduce you've used a thousand times to sum numbers? It's lying to...
# Algorithms broke the internet. We are rebuilding it from the ruins of news feeds.
Dev.to · Karim Qodirov ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
# Algorithms broke the internet. We are rebuilding it from the ruins of news feeds.
We spend hours in feeds that know everything about us, yet leave us in absolute emptiness. Modern...
Bucket Sort Algorithm
Dev.to · Achyut Tripathi ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Bucket Sort Algorithm
Bucket sort is a comparison-based sorting algorithm. A bucket sort is helpful when the input array is...
Mastering the Two Pointers Pattern: A Complete Algorithmic Blueprint
Dev.to · The Architect ⚡ Algorithms & Data Structures 1mo ago
Mastering the Two Pointers Pattern: A Complete Algorithmic Blueprint
The Two Pointers pattern is one of the most fundamental algorithmic techniques for solving array and...
From Brute Force to Optimal: How I Learned to Stop Worrying and Love the Hashmap (Like Neo in The Matrix)
Dev.to · Timevolt ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
From Brute Force to Optimal: How I Learned to Stop Worrying and Love the Hashmap (Like Neo in The Matrix)
The Quest Begins (The "Why") I remember staring at a coding challenge on a lazy Sunday...
Turns out my "random group splitter" doesn't roll any dice — here's what it does instead
Dev.to · BeGoodTool.com ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
Turns out my "random group splitter" doesn't roll any dice — here's what it does instead
A while back I wanted to build the classic "paste a list of names, get N even groups" tool — the kind...
I Got Tired of Rewriting Segment Trees in Go... So I Published One
Dev.to · Satyam Shree ⚡ Algorithms & Data Structures ⚡ AI Lesson 1mo ago
I Got Tired of Rewriting Segment Trees in Go... So I Published One
If you've solved enough competitive programming problems, you've probably written a segment tree more...