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)
Trapping Rain Water: Understanding Data Structure Choices from a Beginner’s Perspective
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 12h ago
Trapping Rain Water: Understanding Data Structure Choices from a Beginner’s Perspective
I picked up this problem thinking it would be a simple array traversal, and I was wrong. It took me a couple of wrong attempts before I… Continue reading on Med
Reddit r/learnprogramming ⚡ Algorithms & Data Structures 23h ago
Really stuck at solving binary trees.
I havent really made a lot of progress in data structures but I am able to understand questions related to LL, stacks, queues, heaps and even recursion pretty e
Dev.to AI ⚡ Algorithms & Data Structures 1d ago
Greedy Algorithms : Making the Best Choice at Every Step
Why should you care? Many programming problems ask us to make a sequence of decisions: Which activity should we choose first? Which item should we process next?
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...
The Grid Problem That Looks Easy Until You Need the Lexicographically Smallest Path
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 3d ago
The Grid Problem That Looks Easy Until You Need the Lexicographically Smallest Path
At first glance, this problem looks almost trivial. Continue reading on Medium »
Medium · Programming ⚡ Algorithms & Data Structures ⚡ AI Lesson 4d ago
The Algorithm That’s Practically O(1) — But Provably Isn’t
Part 4 of the Advanced Algorithms & Data Structures Series Continue reading on Medium »
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 1w ago
Knight Attack Made BFS Feel Like a Recipe, Not a Template
By Sai Pranav Moluguri Continue reading on Medium »
Prefix, Suffix, Proper Prefix & Proper Suffix Explained — A Beginner’s Guide
Medium · JavaScript ⚡ Algorithms & Data Structures 1w ago
Prefix, Suffix, Proper Prefix & Proper Suffix Explained — A Beginner’s Guide
If you’re starting Data Structures and Algorithms, you’ll eventually come across words like: Continue reading on Medium »
Minimum Moves to Clean the Classroom | LEETCODE 3568 | Solve In Seconds | Bloomberg Interview
Medium · Data Science ⚡ Algorithms & Data Structures 2w ago
Minimum Moves to Clean the Classroom | LEETCODE 3568 | Solve In Seconds | Bloomberg Interview
This video walks through LeetCode 3568: Minimum Moves to Clean the Classroom, a Bloomberg interview problem. We explain the BFS + Bitmask… Continue reading on M
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.
Maximum Sum in a Circular Array: A Different Take on Kadane’s Algorithm
Medium · Python ⚡ Algorithms & Data Structures 2w ago
Maximum Sum in a Circular Array: A Different Take on Kadane’s Algorithm
Exploring LeetCode 918 with Python: Continue reading on Medium »
Postgres Is My Queue, My Cron, and My Search Engine. Fight Me
Medium · DevOps ⚡ Algorithms & Data Structures 2w ago
Postgres Is My Queue, My Cron, and My Search Engine. Fight Me
The “just use Postgres” stack, the SQL that runs it, and the four places it stops being a good idea. Continue reading on Medium »
Blind 75 | Arrays & Hashing — 04 Group Anagrams
Medium · AI ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
Blind 75 | Arrays & Hashing — 04 Group Anagrams
Tags: leetcode, blind75, algorithms, arrays, hashmap, java Continue reading on Medium »
Finding the Longest Increasing Path in a Matrix: From a Simple DFS Idea to an Optimized Solution
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
Finding the Longest Increasing Path in a Matrix: From a Simple DFS Idea to an Optimized Solution
Matrix problems have always been a little tricky for me. At first, they look simple because we are just dealing with rows, columns, and a… Continue reading on M
Medium · Python ⚡ Algorithms & Data Structures 2w ago
LeetCode 2058: Find the Minimum and Maximum Number of Nodes Between Critical Points
Linked list problems often become easier once we clearly define what information needs to be carried while traversing. Continue reading on Medium »
Why Strong Senior Engineers Sometimes Fail “Simple” Coding Interviews
Medium · Programming ⚡ Algorithms & Data Structures 2w ago
Why Strong Senior Engineers Sometimes Fail “Simple” Coding Interviews
The problem is not always LeetCode. Sometimes experienced engineers make the solution more complicated than the interviewer ever asked for. Continue reading on
Brute Force Algorithm in DSA: Best Case and Worst Case Explained with JavaScript.
Medium · JavaScript ⚡ Algorithms & Data Structures 2w ago
Brute Force Algorithm in DSA: Best Case and Worst Case Explained with JavaScript.
If you are learning Data Structures and Algorithms (DSA), you will often hear the term Brute Force. But what does a brute force algorithm… Continue reading on M
Medium · Python ⚡ Algorithms & Data Structures 2w ago
LeetCode 2091: Removing Minimum and Maximum From Array : My Intution and Idea
Sometimes an array problem looks like it needs a complicated technique, but after understanding what actually matters, the solution… Continue reading on Medium
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...
Reddit r/learnprogramming ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
I just love coding and love doing competitive programming and leetcode but after doing it for over 1 and half years i just feel like coding sucks and i will never be as good as those Chinese programmers who does leetcode contest in under 5-6 mins and i feel like i wanna quit it at this point.
i am just this cause i am failing to run a leetcode (hard) ques. submitted by /u/Conscious_Foot_429 [link] [com
Reddit r/learnprogramming ⚡ Algorithms & Data Structures 2w ago
How can I become a better problem solver on LeetCode?
I’m a CS/IT university student from , but my university doesn’t teach DSA very well. I want to seriously improve my algorithmic problem-solving skills. - How sh
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...
LeetCode 24: Swap Nodes in Pairs
Medium · Python ⚡ Algorithms & Data Structures ⚡ AI Lesson 2w ago
LeetCode 24: Swap Nodes in Pairs
Today I solved leetcode 24: swap nodes in pairs by using python. Continue reading on Medium »
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...
The TTL Algorithm Behind TanStack Query
Medium · JavaScript ⚡ Algorithms & Data Structures 2w ago
The TTL Algorithm Behind TanStack Query
The Internal Data Structures Behind TanStack Query’s Cache Continue reading on Level Up Coding »
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...
Stack vs Heap: The Memory Story Your Code Never Tells You
Medium · Python ⚡ Algorithms & Data Structures 3w ago
Stack vs Heap: The Memory Story Your Code Never Tells You
Pointers, references, objects, stack frames, heap allocation, garbage collection, and memory leaks explained through simple real-world… Continue reading on Medi
Reddit r/learnprogramming ⚡ Algorithms & Data Structures 3w ago
Help for leetcode practice
I’m a beginner java programmer, ive gone through oop and data structures now im thinking of purchasing leetcode to get better and also adding things to my portf
Reddit r/learnprogramming ⚡ Algorithms & Data Structures 3w ago
What type of programming do I learn? What should I start with?
Learning to program can open up so many opportunities, but it's so overwhelming. I don't know if I should learn full stack web or app development so I can maybe
Medium · Programming ⚡ Algorithms & Data Structures 3w ago
The Perfect Match: Why Python is the Ideal Choice for Learning Data Structures
In the modern tech landscape, Data Structures and Algorithms (DSA) form the bedrock of software engineering. Whether you are aiming to… Continue reading on Medi
Medium · Python ⚡ Algorithms & Data Structures 3w ago
LeetCode 2904: My Intuition and Sliding Window Approach
Intuition Continue reading on Medium »
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...
Reddit r/learnprogramming ⚡ Algorithms & Data Structures 3w ago
Is simply building Projects the best method of learning?
Im an apprentice in germany and i want to expand my knowledge and learn more. Is simply making projects the absolute best way? I have recently started doing lee
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...
Your Program Has More Memory Than You Think
Medium · Python ⚡ Algorithms & Data Structures 3w ago
Your Program Has More Memory Than You Think
Pointers, references, objects, stack frames, heap allocation, garbage collection and memory leaks explained through real programs. Continue reading on Medium »
I Deleted Celery And My Job Queue. Background Jobs Run On My Database Now
Medium · Python ⚡ Algorithms & Data Structures 3w ago
I Deleted Celery And My Job Queue. Background Jobs Run On My Database Now
There is a Redis instance in your stack that you are quietly afraid to restart. Continue reading on Medium »
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...
DSA Patterns 04: Fast & Slow Pointers
Medium · JavaScript ⚡ Algorithms & Data Structures 3w ago
DSA Patterns 04: Fast & Slow Pointers
If you’ve spent any time grinding through coding interview problems, you’ve probably run into a strange little trick: two pointers moving… Continue reading on M
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...
Reddit r/learnprogramming ⚡ Algorithms & Data Structures 3w ago
What should I focus on next as a CS student?
I'm a first-year CS student, and this summer I focused mostly on building my fundamentals. I learned Git/GitHub, practiced C from arrays to pointers, solved man
Permutations in Java: Solve LeetCode 46 with Backtracking (Step-by-Step Guide)
Medium · Programming ⚡ Algorithms & Data Structures 3w ago
Permutations in Java: Solve LeetCode 46 with Backtracking (Step-by-Step Guide)
What Is the Permutations Problem? Continue reading on Medium »
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...
Binary Search — The Algorithm You Underestimate Every Single Day
Medium · Programming ⚡ Algorithms & Data Structures 3w ago
Binary Search — The Algorithm You Underestimate Every Single Day
Four lines of code, and Java shipped them broken in the standard library for eight years. The idea was never the hard part. Continue reading on Stackademic »