The O(n) Club2 Min Read dgtalbugonJune 8, 2025 The O(n) Club: Reverse Words in a String – Where Your Spaces Go to Sabotage You The O(n) Club: Reverse Words in a String – Where Your Spaces Go to Sabotage You ⚡ TL;DR Given a messy string like ” Hello World from… Discover More
The O(n) Club2 Min Read dgtalbugonJune 7, 2025 The O(n) Club: Remove All Adjacent Duplicates in String — Now With 100% Less Regret Than Brute Force The O(n) Club: Remove All Adjacent Duplicates in String — Now With 100% Less Regret Than Brute Force ⚡ TL;DR Stuck deleting every pair of… Discover More
The O(n) Club2 Min Read dgtalbugonJune 7, 2025 The O(n) Club: Merge Sorted Arrays — Why Going Backwards Is Forwards Thinking The O(n) Club: Merge Sorted Arrays — Why Going Backwards Is Forwards Thinking ⚡ TL;DR Trying to merge two already sorted arrays (LeetCode 88)… Discover More
The O(n) Club2 Min Read dgtalbugonJune 6, 2025 The O(n) Club: Find K Pairs with Smallest Sums — Now with 93% Less Suffering The O(n) Club: Find K Pairs with Smallest Sums — Now with 93% Less Suffering ⚡ TL;DR Find k pairs with the smallest sums by using a… Discover More
The O(n) Club2 Min Read dgtalbugonJune 6, 2025 The O(n) Club: Find the Town Judge (LeetCode 997) — Java Edition for Trust Issues The O(n) Club: Find the Town Judge (LeetCode 997) — Java Edition for Trust Issues ⚡ TL;DR This problem is about sniffing out that one person… Discover More
The O(n) Club2 Min Read dgtalbugonJune 6, 2025 The O(n) Club: Find the Town Judge—Or the Search for the Ultimate Influencer The O(n) Club: Find the Town Judge—Or the Search for the Ultimate Influencer ⚡ TL;DR You’re looking for the one person in town everyone… Discover More
The O(n) Club2 Min Read dgtalbugonJune 5, 2025 The O(n) Club: Roman to Integer — Why Does ‘IX’ Always Betray Me? The O(n) Club: Roman to Integer — Why Does ‘IX’ Always Betray Me? ⚡ TL;DR Roman numerals aren’t just fancy birthday cake icing—they come… Discover More
The O(n) Club2 Min Read dgtalbugonJune 5, 2025 The O(n) Club: Maximum XOR of Two Numbers in an Array: Ditch Loops, Grab Bits The O(n) Club: Maximum XOR of Two Numbers in an Array: Ditch Loops, Grab Bits ⚡ TL;DR Find the biggest XOR between any two numbers in an… Discover More
The O(n) Club2 Min Read dgtalbugonJune 4, 2025 The O(n) Club: Implement Queue Using Stacks — Stacking Your Odds The O(n) Club: Implement Queue Using Stacks — Stacking Your Odds ⚡ TL;DR Turn two cranky stacks into a well-behaved queue. Only flip stacks… Discover More
The O(n) Club3 Min Read dgtalbugonJune 4, 2025 The O(n) Club: Pairs of Songs With Total Durations Divisible by 60 — Now That’s What I Call Modulo! The O(n) Club: Pairs of Songs With Total Durations Divisible by 60 — Now That’s What I Call Modulo! ⚡ TL;DR If you want to pair up songs so… Discover More