All problems
Every exercise on the site, in one list.
- A day at the bakery
- A line of dashes
- A queue made of two stacks
- A queue with VIPs
- A stack that knows its minimum
- Above average
- Add to the list
- Add two numbers stored in reverse
- All balanced bracket strings
- All distinct pairs with a sum
- All in stock
- All permutations
- All positions of a value
- All subsets
- Alphabet from a sorted word list
- Anagram groups
- Apply a price change
- Are two trees the same?
- Average per item
- Average price
- Balance point
- Balanced brackets, two kinds
- Balanced parentheses
- Best average over k days
- Best profit with k trades
- Best run of days
- Best stretch of days
- Binary search
- Boats to carry everyone
- Boxes and crates
- Bubble sort
- Build a linked list
- Build the adjacency list
- Burst balloons
- Can every course be taken?
- Can the nodes be split into two teams?
- Can the note be made?
- Can the text be split into words?
- Can you reach the end?
- Capitalise each word
- Celsius to Fahrenheit
- Change due
- Change with standard coins
- Cheapest first
- Cheapest k
- Cheapest path through a grid
- Cheapest price
- Cheapest route with at most k stops
- Cheapest way to connect everything
- Cheapest way to send people to two cities
- Cheapest way up the stairs
- Choose k from n
- Clamp a quantity
- Clean up names
- Climbing stairs
- Closest pair sum
- Closest value in a sorted list
- Codes to names
- Combination sum
- Combination sum, each number once
- Comma list
- Common items
- Common items with counts
- Common prefix
- Compress repeated letters
- Contains milk?
- Content children
- Copy, then extend
- Count each node's connections
- Count expensive items
- Count in a sorted list
- Count in a sorted list
- Count inversions
- Count pairs with a sum
- Count runs that sum to k
- Count smaller items to the right
- Count the groups
- Count the islands
- Count the items
- Count the nodes
- Count the pairs
- Count the vowels
- Cut into palindromes
- Cut into self-contained pieces
- Days until a warmer day
- Dearest item
- Deepest nesting
- Delivery fee
- Describe stock
- Discount rate
- Discounted total
- Distinct orderings with repeats
- Do and undo
- Does the list loop?
- Does the network contain a loop?
- Does the sentence follow the pattern?
- Double the price
- Duplicate within k positions
- Edit distance
- Evaluate a postfix expression
- Even number?
- Evens first
- Every mix of upper and lower case
- Every other item
- Every way to split into words
- Everything but the first
- Expand shelf ranges
- Fewest coins, any coins
- Fewest fuel stops
- Fewest jumps to the end
- Fewest removals to end overlaps
- Fibonacci, fast
- Fibonacci, recursively
- Find a word in a letter grid
- First duplicate
- First item over a price
- First letter
- First non-repeating character in a stream
- First occurrence
- First true
- First unique character
- First unique item
- First word
- Flatten a nested list
- Flood fill
- Free delivery?
- Front of the line
- Grid paths around obstacles
- Group anagrams
- Group by first letter
- Group by length
- h-index
- Halve until under
- Has a duplicate, fast
- Has a space?
- Has the prefix?
- Height of a tree
- House robber
- How long until everything rots?
- How many of this item?
- How many search trees?
- In both shops
- In-order values
- Initials
- Insert position
- Insertion sort
- Is it a subsequence?
- Is it a valid search tree?
- Is it ascending?
- Is it in the search tree?
- Is it on the list?
- Is it priced?
- Is the list a palindrome?
- Is the list empty?
- Is the string an interleaving?
- Is the tree balanced?
- Is there a path with this sum?
- Is there a path?
- Items in order
- Items over a price
- Join the ropes
- Just the number
- k closest to the shop
- k distinct digits with a given sum
- k most frequent numbers
- k-th largest
- k-th largest after each arrival
- k-th number with only small factors
- k-th smallest across sorted lists
- k-th smallest in a search tree
- k-th smallest in a sorted matrix
- Knapsack
- Largest in every window
- Largest island
- Largest number from pieces
- Largest path sum in a tree
- Largest product of a run
- Largest rectangle in a histogram
- Largest value in a tree
- Last item
- Last occurrence
- Last stone standing
- Last three characters
- Last two characters
- Leftover eggs
- Length of a linked list
- Letter counts
- Letters a phone number could spell
- Line totals
- Linear search
- Load the truck
- Long name?
- Longest balanced bracket stretch
- Longest common subsequence
- Longest increasing path in a grid
- Longest increasing subsequence
- Longest name
- Longest palindromic stretch
- Longest palindromic subsequence
- Longest run of consecutive values
- Longest run of ones with k flips
- Longest run summing to zero
- Longest streak
- Longest stretch with at most k distinct letters
- Longest stretch without repeats
- Longest word
- Lowest and highest
- Lowest common ancestor in a search tree
- Lowest common ancestor in any binary tree
- Making change at the stand
- Median of two sorted lists
- Median price
- Merge into the back of a buffer
- Merge into the first list
- Merge overlapping intervals
- Merge several sorted lists
- Merge sort
- Merge three sorted lists
- Merge two sorted linked lists
- Merge two sorted lists
- Merge two stock counts
- Middle item
- Middle node
- Mirror a tree
- Money format
- Most common item
- Most meetings in one room
- Most profitable non-overlapping jobs
- Most urgent few
- Most water between two walls
- Move the zeros to the end
- Move to the back
- Moving average
- N-queens
- n-th node from the end
- Name and print
- Names by priority
- Next most urgent
- No two neighbours alike
- Normalise an item name
- Numbered receipt
- Order the tasks
- Pair them up
- Pair up items and prices
- Pairs that make a price
- Pairs with a difference
- Pairs with the smallest difference
- Palindrome, ignoring case and spaces
- Parse a receipt
- Partition around a value
- Paths through a grid
- Pattern matching with . and *
- Pick the largest k times
- Platforms needed
- Pop several
- Power, recursively
- Price difference
- Price lookup
- Price with tax
- Print three lines
- Process by priority
- Range sums
- Range sums with a prefix table
- Read a linked list into a Python list
- Rebuild a tree from two traversals
- Receipt line
- Receipt line with an f-string
- Receipt lines
- Recent items
- Remove a sold-out item
- Remove a value in place
- Remove duplicates from a sorted linked list
- Remove duplicates in place
- Remove every occurrence
- Remove the vowels
- Restock until full
- Reverse a linked list
- Reverse in place
- Reverse only the vowels
- Reverse the text
- Reverse with a stack
- Rooms needed
- Rotate a linked list
- Rotate a list by k
- Rotate the line
- Running balance
- Running total
- Same item?
- Same items, any order
- Same shape of letters
- Search a rotated list
- Second cheapest
- Seen from the right
- Selection sort
- Serialize and rebuild a tree
- Serve in order
- Serve some customers
- Shelf totals
- Shopping shortfall
- Shortest distances with weights
- Shortest number of steps
- Shortest path to a leaf
- Shortest window with enough
- Shout it
- Slowest speed that finishes in time
- Smallest box that fits
- Smallest in a rotated list
- Smallest missing positive
- Smallest window containing every letter
- Smallest with a heap
- Solve a Sudoku
- Sort a nearly sorted list
- Sort by another list's order
- Sort by frequency
- Sort by price, then name
- Sort grades without comparing
- Sort three colours in place
- Split a pair
- Split a product code
- Split into k equal groups
- Split into k pieces, minimise the largest
- Split into two equal halves
- Split the bill
- Squares of a sorted list
- Steps through a maze
- Steps to find
- Stock after sales
- Stock value
- Subsets with repeated values
- Sum of digits
- Sum of the leaves
- Sum, recursively
- Swap a pair
- Swap nodes in pairs
- Swap two names
- Sweets by rating
- The missing number
- The peak of a mountain
- The shortest route itself
- Three sum, distinct triplets
- Top k most frequent
- Top of the stack
- Top scores, ties by arrival
- Top sellers
- Top words
- Total price
- Total stock
- Transpose a table
- Trapped rainwater
- Triple
- Two largest
- Two sum in one pass
- Two sum on a sorted list
- Undo and redo
- Undo the last change
- Unique items
- Unique, in order
- Update stock
- Valid quantity?
- Validate product codes
- Values by level
- Ways to decode digits
- Ways to make change
- What is in stock
- Where to start the loop
- Who stocks what
- Whole cube root
- Word counts
- Word ladder
- Wrap a label