The O(n) Club2 Min Read dgtalbugonJune 30, 2025 The O(n) Club: Binary Tree Cameras: Minimum Coverage, Maximum Laziness The O(n) Club: Binary Tree Cameras—Minimum Coverage, Maximum Laziness ⚡ TL;DR How many cameras do you need to keep an eye on every spot in… Discover More
The O(n) Club2 Min Read dgtalbugonJune 30, 2025 The O(n) Club: Sort Array By Parity: When Evens Take the Lead (and Odds Wait in Line) The O(n) Club: Sort Array By Parity — When Evens Take the Lead (and Odds Wait in Line) ⚡ TL;DR You want all the even numbers at the start and… Discover More
The O(n) Club1 Min Read dgtalbugonJune 29, 2025 The O(n) Club: Integer Break: How to Multiply Your Happiness (and Numbers) The O(n) Club: Integer Break — How to Multiply Your Happiness (and Numbers) ⚡ TL;DR Split your number n into at least two positive integers.… Discover More
The O(n) Club2 Min Read dgtalbugonJune 29, 2025 The O(n) Club: Maximum Frequency Stack, But Cooler: The Stack That Never Forgets (or Forgives) The O(n) Club: Maximum Frequency Stack, But Cooler ⚡ TL;DR Your classic stack is LIFO: “Last one in, first one out.” But what if… Discover More
The O(n) Club3 Min Read dgtalbugonJune 28, 2025 The O(n) Club: Spiral Matrix II: Mastering The Swirly-Square Algorithm Without Losing Your Sanity The O(n) Club: Spiral Matrix II — Mastering The Swirly-Square Algorithm Without Losing Your Sanity ⚡ TL;DR Fill an n x n grid in spiral order… Discover More
The O(n) Club3 Min Read dgtalbugonJune 28, 2025 The O(n) Club: Restore IP Addresses—Dotting Your Way to Sanity The O(n) Club: Restore IP Addresses—Dotting Your Way to Sanity ⚡ TL;DR Stuff three dots into a digit string until you get every possible valid… Discover More
The O(n) Club2 Min Read dgtalbugonJune 27, 2025 The O(n) Club: Count Binary Substrings — Or, Why Brute Force Devs Cry The O(n) Club: Count Binary Substrings — Or, Why Brute Force Devs Cry ⚡ TL;DR Count every spot where a run of ‘0’s is immediately… Discover More
The O(n) Club2 Min Read dgtalbugonJune 27, 2025 The O(n) Club: Subarray Sums Divisible by K (Now with Fewer Caffeine-Induced Tears) The O(n) Club: Subarray Sums Divisible by K (Now with Fewer Caffeine-Induced Tears) ⚡ TL;DR Want to know how many subarrays have sums… Discover More
The O(n) Club2 Min Read dgtalbugonJune 26, 2025 The O(n) Club: Minimum Number of Arrows to Burst Balloons Without Losing (Your Mind) The O(n) Club: Minimum Number of Arrows to Burst Balloons Without Losing (Your Mind) ⚡ TL;DR This is LeetCode 452, not the Macy’s… Discover More
The O(n) Club2 Min Read dgtalbugonJune 26, 2025 The O(n) Club: Delete Operation for Two Strings — Deleting Your Way to Happiness The O(n) Club: Delete Operation for Two Strings — Deleting Your Way to Happiness ⚡ TL;DR Want two strings to be identical? Just delete… Discover More