The Mutex Club1 Min Read dgtalbugonJune 3, 2025 The Mutex Club: Mastering thenCompose() in Java CompletableFuture TL;DR: Stop Nesting, Start Composing If your Java code is generating CompletableFuture<CompletableFuture<T>>, you’ve lost the… Discover More
The Mutex Club1 Min Read dgtalbugonJune 3, 2025 The Mutex Club: thenApply() – Java’s Synchronous Hero or Threading Trap? What is thenApply? # Synchronous by design Java’s thenApply() isn’t an async ninja—it’s a synchronous transformer that runs your Function on… Discover More
The O(n) Club2 Min Read dgtalbugonJune 2, 2025 The O(n) Club: Russian Doll Envelopes—How to Stuff Smarter, Not Harder The O(n) Club: Russian Doll Envelopes—How to Stuff Smarter, Not Harder ⚡ TL;DR Goal: Nest as many envelopes (each: width, height) as possible… Discover More
The O(n) Club2 Min Read dgtalbugonJune 2, 2025 The O(n) Club: Russian Doll Envelopes: Where Sorting Actually Makes You Look Smart The O(n) Club: Russian Doll Envelopes—Where Sorting Actually Makes You Look Smart ⚡ TL;DR Find the most envelopes that fit inside each other,… Discover More
The O(n) Club3 Min Read dgtalbugonJune 2, 2025 The O(n) Club: LFU Cache: How to Get Unpopular Fast (and Still Write O(1) Java) The O(n) Club: LFU Cache — How to Get Unpopular Fast (and Still Write O(1) Java) ⚡ TL;DR LFU (Least Frequently Used) Cache is basically a… Discover More
The Mutex Club2 Min Read dgtalbugonJune 2, 2025 The Mutex Club: Async Bliss or Nightmare Fuel with CompletableFuture Ready to ditch callback hell and idle threads? CompletableFuture in Java hands you a velvet rope to non-blocking, chainable async… Discover More
The Mutex Club1 Min Read dgtalbugonJune 2, 2025 The Mutex Club: Submit() vs Execute() Showdown 🔐 A Tale of Two Methods Ever felt Java’s ExecutorService was a secret handshake club? You’re not alone. Two methods—execute() and submit()—stand… Discover More
The O(n) Club2 Min Read dgtalbugonJune 1, 2025 The O(n) Club: Minimum Cost Tree From Leaf Values — Monotonic Stack Style The O(n) Club: Minimum Cost Tree From Leaf Values — Monotonic Stack Style ⚡ TL;DR Your goal: take an array of integers (leaves) and build a… Discover More
The O(n) Club2 Min Read dgtalbugonJune 1, 2025 The O(n) Club: Minimum Cost Tree From Leaf Values — Monotonic Stack Style The O(n) Club: Minimum Cost Tree From Leaf Values — Monotonic Stack Style ⚡ TL;DR Your goal: take an array of integers (leaves) and build a… Discover More
The O(n) Club2 Min Read dgtalbugonJune 1, 2025 The O(n) Club: Minimum Cost Tree From Leaf Values — Monotonic Stack Style The O(n) Club: Minimum Cost Tree From Leaf Values — Monotonic Stack Style ⚡ TL;DR Your goal: take an array of integers (leaves) and build a… Discover More