Exercises
Browse All Exercises
Search and filter across the entire exercise library.
Filters
97 exercises
medium
Python
Meeting Room Scheduler
# Meeting Room Scheduler Write a function `min_meeting_rooms(intervals)` that determines the minimum number of meeting...
algorithms
scheduling
intervals
+3
medium
Python
Minimum Jumps to Reach End
# Minimum Jumps to Reach End Implement a function that finds the minimum number of jumps needed to reach the last index...
arrays
greedy
dynamic-programming
+4
hard
Python
N-Queens Solver
Build a function that solves the classic N-Queens problem using backtracking. The N-Queens problem asks: how can you pl...
backtracking
recursion
algorithms
+2
medium
Python
Word Search Solver
Build a function that solves a word search puzzle. Given a 2D board of letters and a target word, determine if the word...
backtracking
dfs
recursion
+2
medium
Python
Grid Path Finder
# Grid Path Finder Create a function that finds all possible paths in a grid from the top-left corner (0, 0) to the bot...
recursion
backtracking
grid-traversal
+2
medium
Python
Generate All Permutations
Build a function that generates all permutations of a list of distinct integers. A permutation is a rearrangement of el...
recursion
permutations
backtracking
+2
medium
Python
Generate All Subsets of a List
Write a function that generates all possible subsets (the power set) of a list of distinct integers. The power set of a...
recursion
backtracking
combinatorics
+2
easy
Python
Generate Valid Parentheses Combinations
Write a function that generates all valid combinations of `n` pairs of parentheses. A valid combination means: - Each o...
recursion
backtracking
strings
+1
hard
Python
Sliding Window Maximum
Implement a function that finds the maximum value in each sliding window of size k across an array. Given an array of i...
sliding-window
deque
optimization
+5
medium
Python
Reverse Polish Notation Calculator
# Reverse Polish Notation Calculator Implement a function that evaluates mathematical expressions written in Reverse Po...
stack
algorithms
math
+5
easy
Python
MinStack: Stack with O(1) Minimum
Build a `MinStack` class that supports all stack operations plus finding the minimum element, all in O(1) time complexit...
stack
data-structures
optimization
+4
easy
Python
Valid Bracket String Checker
Write a function that determines if a string containing brackets is valid. A valid bracket string means: - Every openin...
stack
string-validation
data-structures
+5
Previous
Page 5 of 9
Next