Exercises

Browse All Exercises

Search and filter across the entire exercise library.

97 exercises

mediumPython
Meeting Room Scheduler
# Meeting Room Scheduler Write a function `min_meeting_rooms(intervals)` that determines the minimum number of meeting...
algorithms
scheduling
intervals
+3
mediumPython
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...
arraysgreedydynamic-programming+4
hardPython
N-Queens Solver
Build a function that solves the classic N-Queens problem using backtracking. The N-Queens problem asks: how can you pl...
backtrackingrecursionalgorithms+2
mediumPython
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...
backtrackingdfsrecursion+2
mediumPython
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...
recursionbacktrackinggrid-traversal+2
mediumPython
Generate All Permutations
Build a function that generates all permutations of a list of distinct integers. A permutation is a rearrangement of el...
recursionpermutationsbacktracking+2
mediumPython
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...
recursionbacktrackingcombinatorics+2
easyPython
Generate Valid Parentheses Combinations
Write a function that generates all valid combinations of `n` pairs of parentheses. A valid combination means: - Each o...
recursionbacktrackingstrings+1
hardPython
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-windowdequeoptimization+5
mediumPython
Reverse Polish Notation Calculator
# Reverse Polish Notation Calculator Implement a function that evaluates mathematical expressions written in Reverse Po...
stackalgorithmsmath+5
easyPython
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...
stackdata-structuresoptimization+4
easyPython
Valid Bracket String Checker
Write a function that determines if a string containing brackets is valid. A valid bracket string means: - Every openin...
stackstring-validationdata-structures+5
PreviousPage 5 of 9Next