The Mutex Club1 Min Read dgtalbugonMay 24, 2025 The Mutex Club: Mastering LockSupport.unpark() for Robust Java Concurrency TL;DR; Park/unpark gives each thread a single ‘permit’: no more stacking, no more lost wakeups. It’s the low-level muscle… Discover More
The Mutex Club2 Min Read dgtalbugonMay 24, 2025 The Mutex Club: Park or Perish with Java’s LockSupport.park() Key Insights ### Bare-Metal Thread Blocking Ever wondered how Java tames threads under the hood? LockSupport.park() is the primitive that puts… Discover More
The O(n) Club3 Min Read dgtalbugonMay 23, 2025 The O(n) Club: Asteroid Collision: Simulate, Stack, Survive (LeetCode 735) The O(n) Club: Asteroid Collision—Simulate, Stack, Survive (LeetCode 735) ⚡ TL;DR Bunch of asteroids, each moving left or right. When they… Discover More
The O(n) Club2 Min Read dgtalbugonMay 23, 2025 The O(n) Club: Distinct Subsequences, or How to Skip Letters Like a Pro (and Keep Your Sanity) The O(n) Club: Distinct Subsequences, or How to Skip Letters Like a Pro (and Keep Your Sanity) ⚡ TL;DR Want the number of ways to get t as a… Discover More
The Mutex Club2 Min Read dgtalbugonMay 23, 2025 The Mutex Club: Java’s StampedLock — Three Modes, One Sharp Edge Introduction StampedLock is the concurrency Swiss Army knife you never knew you needed—until you cut yourself on the corkscrew. Introduced in… Discover More
The Mutex Club2 Min Read dgtalbugonMay 23, 2025 The Mutex Club: ReentrantReadWriteLock—Concurrency Lifesaver or Disaster Waiting to Happen? A Concurrency Playground or a Deadlock Dungeon? Think your Java app needs speed? Enter ReentrantReadWriteLock, the bouncer that lets a swarm… Discover More
The O(n) Club2 Min Read dgtalbugonMay 22, 2025 The O(n) Club: How Many Ways Can You Lose Count? (A Java Dev’s Guide to Combination Sum IV) The O(n) Club: How Many Ways Can You Lose Count? (A Java Dev’s Guide to Combination Sum IV) ⚡ TL;DR You want to count the number of… Discover More
The O(n) Club2 Min Read dgtalbugonMay 22, 2025 The O(n) Club: Remove Element — How to Clean Arrays Without Panic or Pain The O(n) Club: Remove Element — How to Clean Arrays Without Panic or Pain ⚡ TL;DR LeetCode #27 in plain English: Pretend you actually like… Discover More
The Mutex Club1 Min Read dgtalbugonMay 22, 2025 The Mutex Club: tryLock()—Power Tool or Bug Factory? Key Insights – Non-blocking magic: tryLock() grabs a mutex if it’s free and immediately returns a boolean instead of parking your… Discover More
The Mutex Club2 Min Read dgtalbugonMay 22, 2025 The Mutex Club: Taming Java’s ReentrantLock Like a Pro Key Insights # What Is ReentrantLock? ReentrantLock from java.util.concurrent.locks is Java’s explicit, flexible alternative to the… Discover More