The Mutex Club1 Min Read dgtalbugonApril 8, 2025 The Mutex Club: Mastering Java Parallel Merge Sort with ForkJoinPool Key Insights # Divide and Conquer with ForkJoinPool ForkJoinPool is Java’s answer to your recursive parallel fantasies. It splits your array… Discover More
The O(n) Club2 Min Read dgtalbugonApril 7, 2025 The O(n) Club: Majority Element II and the Pigeonhole Plot Twist The O(n) Club: Majority Element II and the Pigeonhole Plot Twist ⚡ TL;DR Need to spot every array element that appears more than n/3 times?… Discover More
The O(n) Club2 Min Read dgtalbugonApril 7, 2025 The O(n) Club: Permutation in String — Where Brute Force Goes To Die The O(n) Club: Permutation in String — Where Brute Force Goes To Die ⚡ TL;DR Given two strings, does s2 have a substring that’s a… Discover More
The Mutex Club2 Min Read dgtalbugonApril 7, 2025 The Mutex Club: Mastering Singletons, Thread Safety & Double-Checked Locking Key Insights # One Instance Only The singleton pattern guarantees a single class instance and global access. It’s ideal for loggers,… Discover More
The Mutex Club2 Min Read dgtalbugonApril 7, 2025 The Mutex Club: How Semaphore-Based Rate Limiters Actually Work (and Why They’re More Than Just Fancy Locks) Semaphore Rate Limiting: The Velvet Rope for Your Threads Ever felt like your backend needed a bouncer? Enter semaphores. While mutexes get… Discover More
The O(n) Club3 Min Read dgtalbugonApril 6, 2025 The O(n) Club: Reorganize String (Or How to Avoid Awkward Repeats) The O(n) Club: Reorganize String (Or How to Avoid Awkward Repeats) ⚡ TL;DR Your string is throwing a party, but it can’t have two guests… Discover More
The O(n) Club2 Min Read dgtalbugonApril 6, 2025 The O(n) Club: Why Splitting Arrays Feels Like Filing Taxes (LeetCode 410 Explained) The O(n) Club: Why Splitting Arrays Feels Like Filing Taxes (LeetCode 410 Explained) ⚡ TL;DR You’ve got a rowdy array, and you want to… Discover More
The Mutex Club2 Min Read dgtalbugonApril 6, 2025 The Mutex Club: How (and Why) to Build a Thread-Safe LRU Cache The Thread-Safe LRU Cache, Deconstructed So you want to join the Mutex Club—the secret society of devs who actually ship high-performance… Discover More
The Mutex Club2 Min Read dgtalbugonApril 6, 2025 The Dining Philosophers Problem: When Concurrency Goes From Fine Dining to Food Fight Hungry for Answers: The Dining Philosophers Problem 🍽️ Picture this: five intellectuals, a bunch of forks, and way too much time to overthink.… Discover More
The O(n) Club2 Min Read dgtalbugonApril 5, 2025 The O(n) Club: Unique Paths II—Help, My Robot Can’t Even (LeetCode 63 Edition) The O(n) Club: Unique Paths II—Help, My Robot Can’t Even (LeetCode 63 Edition) ⚡ TL;DR You’re coding a grid-crawling robot, but… Discover More