The Mutex Club2 Min Read dgtalbugonMarch 18, 2025 The Mutex Club: Coordinating Threads in Phases with Phaser TL;DR Ever tried corralling chatty threads that need to wait on each other? Java’s Phaser is your airtight club bouncer. It handles variable… Discover More
The Mutex Club1 Min Read dgtalbugonMarch 17, 2025 The Mutex Club: CountDownLatch: Waiting for Threads Like a Boss The Mutex Club: CountDownLatch — Waiting for Threads Like a Boss (and Not Getting Burned) Concurrency can feel like juggling flaming… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 17, 2025 The Mutex Club: Divide & Conquer with ForkJoinPool Key Insights # Work-Stealing Algorithm Java’s ForkJoinPool turns each worker thread into a task thief. Every thread owns a double-ended queue… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 17, 2025 The O(n) Club: Subtree of Another Tree: How to Find Doppelgänger Branches (and Not Lose Your Mind) The O(n) Club: Subtree of Another Tree – How to Find Doppelgänger Branches (and Not Lose Your Mind) ⚡ TL;DR Want to know if subRoot is… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 17, 2025 The O(n) Club: Delete Node in a BST — When Trees Demand Therapy The O(n) Club: Delete Node in a BST — When Trees Demand Therapy ⚡ TL;DR Deleting a node in a BST is three things: drama-free for leaves,… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 16, 2025 The Mutex Club: Blocking Queues in Executors: Types and Use Cases Introduction: Taming the Thread Stampede Ever watched your Java thread pool duct-tape itself together under load? That’s the BlockingQueue in… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 16, 2025 The Mutex Club: Building a Custom ThreadPoolExecutor Key Insights ### Core vs. Max Threads Core Pool Size: The steady squad of worker threads always ready to tackle tasks. Max Pool Size: That… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 16, 2025 The O(n) Club: Path Sum and the Java Leaf-Hunting Gauntlet The O(n) Club: Path Sum and the Java Leaf-Hunting Gauntlet ⚡ TL;DR Loyal binary searchers, here’s the deal: You want to know if any… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 16, 2025 The O(n) Club: Queue Reconstruction by Height is Just Tall-Tale Sorting The O(n) Club: Queue Reconstruction by Height is Just Tall-Tale Sorting ⚡ TL;DR You get a list of [height, k] for people—k means “number of… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 15, 2025 The O(n) Club: Longest Increasing Path in a Matrix — Because Who Needs Diagonals? The O(n) Club: Longest Increasing Path in a Matrix — Because Who Needs Diagonals? ⚡ TL;DR Find the longest path in a matrix by moving up,… Discover More