The O(n) Club2 Min Read dgtalbugonJanuary 21, 2025 The O(n) Club: Remove Nth Node From End—Don’t Lose Your Head (Literally) The O(n) Club: Remove Nth Node From End—Don’t Lose Your Head (Literally) ⚡ TL;DR Delete the nth node from the end of a singly linked list—no… Discover More
The O(n) Club3 Min Read dgtalbugonJanuary 13, 2025 The O(n) Club: Merge k Sorted Lists—Because Your Timeline Isn’t Going to Sort Itself The O(n) Club: Merge k Sorted Lists—Because Your Timeline Isn’t Going to Sort Itself ⚡ TL;DR Got k sorted linked lists and the urge to… Discover More
The O(n) Club3 Min Read dgtalbugonJanuary 13, 2025 The O(n) Club: Merge k Sorted Lists: How to Outsmart Brute Force (and Your Past Self) The O(n) Club: Merge k Sorted Lists—How to Outsmart Brute Force (and Your Past Self) ⚡ TL;DR Why manually stitch k sorted linked lists… Discover More
The O(n) Club1 Min Read dgtalbugonJanuary 13, 2025 The O(n) Club: Merge Two Sorted Linked Lists – The Dummy Node Sanity Check The O(n) Club: Merge Two Sorted Linked Lists – The Dummy Node Sanity Check ⚡ TL;DR Need to merge two sorted linked lists in Java? Skip the… Discover More
The O(n) Club3 Min Read dgtalbugonJanuary 12, 2025 The O(n) Club: Reverse Linked List — Because Losing Nodes Should Be Illegal The O(n) Club: Reverse Linked List — Because Losing Nodes Should Be Illegal ⚡ TL;DR Reversing a singly linked list isn’t some black magic—just… Discover More