top of page
Search
Remove Nth Node
Removing the Nth node from the end of a linked list is a perfect warm-up for real-world tasks like trimming logs, pruning history...
1 day ago4 min read
Detect the Start of a Cycle
Finding not just whether a linked list has a cycle but exactly where that cycle begins is a real-world need whenever you’re dealing with...
1 day ago4 min read
Detect a Cycle
Detecting a cycle in a linked list is a classic problem that comes up when you need to guard against infinite loops—whether you’re...
1 day ago4 min read
Merge Two Sorted Lists
Merging two sorted linked lists is like merging two sorted streams of data—think combining two user event logs in chronological order....
2 days ago3 min read
Reverse a Linked List
Reversing a linked list is one of those fundamental operations that underpins many real-world tasks—reordering a playlist, undo history,...
2 days ago3 min read
Missing Number
When you need to find the one missing entry in a sequence—say missing log IDs, seats, or data packets— Missing Number is the classic...
3 days ago3 min read
Top K Frequent Elements
Finding the most frequent items in a dataset is a common real-world task—think trending topics in social media, most visited pages on a...
3 days ago4 min read
Intersection of Two Arrays
Finding the intersection of two arrays - i.e. the common elements between two lists - is a real-world task you’ll do when reconciling...
3 days ago4 min read
Kth Largest Element in an Array
Finding the Kth largest element in an array is a practical problem you’ll face when you need to compute statistics on large...
3 days ago4 min read
Sort Colors (Dutch National Flag) Problem
Sorting an array of red, white, and blue objects—represented by 0, 1, and 2—is a classic real-world task when you need to group items by...
Apr 243 min read
Merge Two Sorted Arrays
Merging two sorted arrays is a super-practical task you’ll do whenever you need to combine sorted streams—think merging log files, time...
Apr 223 min read
First Bad Version
The First Bad Version problem - a perfect warm-up to demonstrate binary search
Apr 223 min read
Binary Search
Binary Search is a cornerstone algorithm that shows up in everything from database lookups to system libraries. It’s a perfect warm‑up...
Apr 222 min read
Search Insert Position
Problem Statement - Search Insert Position Given a sorted array of distinct integers and a target value , return the index if the...
Apr 183 min read
Majority Element
Finding the majority element—an item that appears more than half the time in an array—is a classic warm‑up that’s surprisingly useful in...
Apr 183 min read
Longest Common Prefix
Finding the longest common prefix among an array of strings is a classic warm‑up. It pops up in real‑world scenarios like building...
Apr 183 min read
Needle In a Haystack - Part 1
Searching for a substring within a larger string is a fundamental task in many real‑world applications—think text editors, search...
Apr 173 min read
Valid Palindrome - A Warm Up
Checking whether a string is a palindrome—ignoring punctuation, spaces, and case—is a classic coding interview warm‑up. It’s directly...
Apr 173 min read
First Unique Character in a String
Finding the first non‑repeating character in a string is a great warm‑up that combines practical string processing with frequency...
Apr 163 min read
Valid Anagram
Today, I’m tackling the Valid Anagram problem, a classic that not only tests basic string manipulation but also real‑world pattern...
Apr 164 min read
bottom of page