The O(n) Club2 Min Read dgtalbugonMay 16, 2025 The O(n) Club: Search in Rotated Sorted Array II: Why Binary Search Needs Therapy The O(n) Club: Search in Rotated Sorted Array II — Why Binary Search Needs Therapy ⚡ TL;DR Rotated sorted array got you feeling dizzy? Now… Discover More
The O(n) Club3 Min Read dgtalbugonMay 16, 2025 The O(n) Club: All Possible Parentheses — Recursion Goes Wild The O(n) Club: All Possible Parentheses — Recursion Goes Wild ⚡ TL;DR Given an expression like “2*3-4*5”, your job is to group… Discover More
The Mutex Club2 Min Read dgtalbugonMay 16, 2025 The Mutex Club: Thread.yield()—Java’s Most Misunderstood Nudge Thread.yield(): Java’s Most Misunderstood Nudge Let’s get something straight: Thread.yield() in Java is the multithreading equivalent of… Discover More
The Mutex Club2 Min Read dgtalbugonMay 16, 2025 The Mutex Club: Thread.sleep() – The Concurrency Clown Nobody Asked For Key Insights ### Thread.sleep() is a Minimum Wait Thread.sleep() forces the current thread into TIMED_WAITING for at least the duration—even… Discover More
The O(n) Club2 Min Read dgtalbugonMay 15, 2025 The O(n) Club: Constructing BST from Preorder — Recursion, Not Regret The O(n) Club: Constructing BST from Preorder — Recursion, Not Regret ⚡ TL;DR Rebuild a Binary Search Tree from an array that screams… Discover More
The O(n) Club2 Min Read dgtalbugonMay 15, 2025 The O(n) Club: Permutation Sequence: The Algorithmic VIP Pass The O(n) Club: Permutation Sequence — The Algorithmic VIP Pass ⚡ TL;DR Find the k-th permutation (in lex order) of numbers 1 to n… without… Discover More
The Mutex Club1 Min Read dgtalbugonMay 15, 2025 The Mutex Club: Don’t Let Thread.run() Fool You – Unleash True Java Concurrency Key Insights Thread.run() is just another method call It executes synchronously on the calling thread—no JVM wizardry, no parallelism.… Discover More
The Mutex Club2 Min Read dgtalbugonMay 15, 2025 The Mutex Club: Respecting Java’s Thread.start() 🔒 Key Insights Java’s Thread.start() is the gateway to genuine parallelism. Think of it as sending your code on a separate courier bike instead… Discover More
The O(n) Club3 Min Read dgtalbugonMay 14, 2025 The O(n) Club: Maximum Width of Binary Tree: Counting Gaps Like a Pro The O(n) Club: Maximum Width of Binary Tree—Counting Gaps Like a Pro ⚡ TL;DR Width isn’t about how many nodes you see—it’s about the full… Discover More
The O(n) Club2 Min Read dgtalbugonMay 14, 2025 The O(n) Club: Zigzag Conversion – How to Break, Not Break, And Break Your Strings The O(n) Club: Zigzag Conversion – How to Break, Not Break, And Break Your Strings ⚡ TL;DR Take your input string, sprinkle it… Discover More