The O(n) Club3 Min Read dgtalbugonMarch 3, 2025 The O(n) Club: Word Search II: Why Your Brute Force Solution Needs an Intervention The O(n) Club: Word Search II—Why Your Brute Force Solution Needs an Intervention ⚡ TL;DR Want to find every dictionary word in a letter grid,… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 3, 2025 The Mutex Club: User vs Kernel Threads: Know the Difference Introduction Welcome to the ring where user threads and kernel threads duke it out for CPU time, bragging rights, and your sanity. Think of… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 3, 2025 The Mutex Club: Daemon Threads: Background Heroes of Java Imagine your Java application as a Broadway production. Your user threads are the divas hitting high notes, and daemon threads are the… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 2, 2025 The O(n) Club: Reverse Linked List II — Now With 100% More Pointer Regret The O(n) Club: Reverse Linked List II — Now With 100% More Pointer Regret ⚡ TL;DR A classic linked list headache: given a 1-indexed singly… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 2, 2025 The O(n) Club: Swap Nodes in Pairs — No, You Can’t Just Swap Values The O(n) Club: Swap Nodes in Pairs — No, You Can’t Just Swap Values ⚡ TL;DR Take a singly linked list and actually swap every pair of… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 2, 2025 The Mutex Club: Multithreading Demystified Overview Welcome to the ultimate smackdown: multithreading vs multiprocessing. Imagine your application as a kitchen. Threads are the… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 2, 2025 The Mutex Club: Taming Thread Priorities for Smarter Scheduling Key Insights ### What Is Priority Inversion? Imagine a culinary competition: the star chef (high-priority thread) is ready to plate, but their… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 1, 2025 The O(n) Club: Nodes at Distance K in Binary Trees — Now With Bonus Parent Trouble The O(n) Club: Nodes at Distance K in Binary Trees — Now With Bonus Parent Trouble ⚡ TL;DR You need all nodes exactly K edges away from your… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 1, 2025 The O(n) Club: Counting Bits: Why Loop When You Can Cheat? The O(n) Club: Counting Bits: Why Loop When You Can Cheat? ⚡ TL;DR Given n, return an array of the number of 1’s (set bits) in each… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 1, 2025 The O(n) Club: Add Two Numbers, Linked Lists, and That Sneaky Carry The O(n) Club: Add Two Numbers, Linked Lists, and That Sneaky Carry ⚡ TL;DR Two linked lists. Digits in reverse. Add ’em, digit by… Discover More