The O(n) Club2 Min Read dgtalbugonMarch 28, 2025 The O(n) Club: Two Sum II – Sorted Input, Sorted Output, Less Screaming The O(n) Club: Two Sum II – Sorted Input, Sorted Output, Less Screaming ⚡ TL;DR You have a sorted array, a target, and either a Java IDE or a… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 28, 2025 The Mutex Club: Parallel API Mastery with CompletableFuture Key Insights – Spin off parallel tasks with CompletableFuture.allOf() to slash API wait times. Avoid the common O(N×T) trap by… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 28, 2025 The Mutex Club: Mastering CompletableFuture Exception Handling Key Insights Java’s CompletableFuture is your lifeboat when async code risks sinking into callback hell. Its trio of exception… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 27, 2025 The O(n) Club: Partition to K Equal Sum Subsets Without Losing Sanity The O(n) Club: Partition to K Equal Sum Subsets Without Losing Sanity ⚡ TL;DR Divide an array into k non-empty groups with equal sums. If… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 27, 2025 The O(n) Club: Parentheses on the Brink—How to Fix Invalid Parentheses Without Deleting Your Soul The O(n) Club: Parentheses on the Brink—How to Fix Invalid Parentheses Without Deleting Your Soul ⚡ TL;DR You’ve been handed a string… Discover More
The Mutex Club1 Min Read dgtalbugonMarch 27, 2025 The Mutex Club: Master Java CompletableFuture Chaining with thenApply, thenAccept & thenCompose Key Insights ### thenApply: The Chef’s Slice Synchronous transformer (think Stream.map) that reshapes your result on the same thread. Ideal… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 26, 2025 The O(n) Club: Count Complete Tree Nodes Like a Binary Sorcerer The O(n) Club: Count Complete Tree Nodes Like a Binary Sorcerer ⚡ TL;DR You could count each node in your complete binary tree like a… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 26, 2025 The O(n) Club: Surrounded Regions — Don’t Flip Out, Mark the Borders! The O(n) Club: Surrounded Regions — Don’t Flip Out, Mark the Borders! ⚡ TL;DR Got a board of ‘O’s and ‘X’s? Flip every… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 25, 2025 The O(n) Club: Sudoku Solver—Backtracking Without Losing Your Sanity The O(n) Club: Sudoku Solver—Backtracking Without Losing Your Sanity ⚡ TL;DR Solve Sudoku like you mean it—skip brute force, do backtracking!… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 25, 2025 The O(n) Club: Remove K Digits with Stack-Fueled Schadenfreude The O(n) Club: Remove K Digits with Stack-Fueled Schadenfreude ⚡ TL;DR Want to turn a big, ugly number into its smallest possible self by… Discover More