The O(n) Club3 Min Read dgtalbugonFebruary 18, 2025 The O(n) Club: Course Schedule II’s Topological Soap Opera The O(n) Club: Course Schedule II’s Topological Soap Opera ⚡ TL;DR LeetCode 210 is just course scheduling pretending to be about academics.… Discover More
The O(n) Club2 Min Read dgtalbugonFebruary 18, 2025 The O(n) Club: Find All Numbers Disappeared in an Array — Now With Extra Negativity The O(n) Club: Find All Numbers Disappeared in an Array — Now With Extra Negativity ⚡ TL;DR Caffeine fading fast? In short: You’ve got an int… Discover More
The O(n) Club3 Min Read dgtalbugonFebruary 17, 2025 The O(n) Club: Target Sum — Why Subset Sums Deserve an Oscar for Best Disguise The O(n) Club: Target Sum — Why Subset Sums Deserve an Oscar for Best Disguise ⚡ TL;DR Want your array to hit the target by just flipping plus… Discover More
The O(n) Club2 Min Read dgtalbugonFebruary 17, 2025 The O(n) Club: Spiral Matrix — How to Spiral Without Actually Losing Your Mind The O(n) Club: Spiral Matrix — How to Spiral Without Actually Losing Your Mind ⚡ TL;DR Spiral Matrix: Peel the matrix like you would an… Discover More
The O(n) Club3 Min Read dgtalbugonFebruary 16, 2025 The O(n) Club: Reverse Nodes in K-Group: Now You’re Juggling Pointers and Sanity The O(n) Club: Reverse Nodes in K-Group — Now You’re Juggling Pointers and Sanity ⚡ TL;DR Reverse your singly-linked list in groups of k… Discover More
The O(n) Club2 Min Read dgtalbugonFebruary 16, 2025 The O(n) Club: Task Scheduler Idle Madness (and the Math That Saves You) The O(n) Club: Task Scheduler Idle Madness (and the Math That Saves You) ⚡ TL;DR Given a list of tasks and a cooldown period, schedule them so… Discover More
The O(n) Club2 Min Read dgtalbugonFebruary 15, 2025 The O(n) Club: Maximal Rectangle — How Histograms Secretly Run the Grid The O(n) Club: Maximal Rectangle — How Histograms Secretly Run the Grid ⚡ TL;DR If you’re hunting for the biggest rectangle of 1’s… Discover More
The O(n) Club2 Min Read dgtalbugonFebruary 15, 2025 The O(n) Club: Median from Data Stream—How Heaps Became Your Streaming BFF The O(n) Club: Median from Data Stream—How Heaps Became Your Streaming BFF ⚡ TL;DR Still sorting your whole list every time for the median,… Discover More
The O(n) Club1 Min Read dgtalbugonFebruary 14, 2025 The O(n) Club: Decode Ways — How Zeros Spoil All Your Fun (and DP Saves You) The O(n) Club: Decode Ways — How Zeros Spoil All Your Fun (and DP Saves You) ⚡ TL;DR Given a string of digits, count all the ways to map it to… Discover More
The O(n) Club1 Min Read dgtalbugonFebruary 14, 2025 The O(n) Club: Perfect Squares Problem—Counting Squares Without Losing Yours The O(n) Club: Perfect Squares Problem—Counting Squares Without Losing Yours ⚡ TL;DR Given a number n, find the minimum count of perfect… Discover More