top of page
Search
Evaluate Reverse Polish Notation
Reverse Polish Notation (RPN), also known as postfix notation, is a useful format for calculators and expression evaluation because it...
May 5, 20256 min read
Min Stack
Maintaining a stack that can return its minimum value in constant time is a neat warm‑up that mirrors real‑world needs like tracking the...
May 5, 20254 min read
Implement a Queue Using Stacks
Building a queue out of stacks is a classic exercise in adapting one data structure to mimic another. It’s not only a great warm‑up for...
May 5, 20254 min read
Valid Parentheses
Checking whether a string of parentheses is valid is one of the most common warm‑ups in interviews. It’s directly applicable to parsing...
May 5, 20253 min read
Intersection of Two Linked Lists
Finding the intersection node of two linked lists is like spotting the shared checkpoint in two runners’ paths—useful for debugging...
May 2, 20254 min read
Add Two Numbers (Digits in Reverse)
Adding two numbers digit by digit in reverse order is a great warm‑up for handling arbitrary‑precision arithmetic in systems that store...
May 2, 20254 min read
Palindrome Linked List
Checking whether a linked list reads the same forwards and backwards is a great warm‑up that mirrors real‑world tasks like validating...
May 2, 20254 min read
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...
Apr 30, 20254 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...
Apr 30, 20254 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...
Apr 30, 20254 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....
Apr 29, 20253 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,...
Apr 29, 20253 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...
Apr 28, 20253 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...
Apr 28, 20254 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...
Apr 28, 20254 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...
Apr 28, 20254 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 24, 20253 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 22, 20253 min read
First Bad Version
The First Bad Version problem - a perfect warm-up to demonstrate binary search
Apr 22, 20253 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 22, 20252 min read
bottom of page