practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5965 original coding, SQL, system design, machine learning and behavioral problems across 15 topics. Coding and SQL problems run against hidden test cases right in your browser; every problem has hints and a worked solution, free.
- 5965
- Problems
- 2208
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 5941–5965 of 5965 results
- Math & Bit ManipulationMediumAuto-gradedModular Exponentiation of a Polynomial at a Point
Tests the ability to evaluate a polynomial modulo a prime, raise the result to a large power modulo the same prime, and apply Fermat's little theorem for efficiency.
Math & Bit Manipulationmathmodular arithmeticnumber theory - Linked ListsEasyAuto-gradedMerge Pre-Sorted Runs in a Linked List
Tests pointer manipulation by merging a singly-linked list that is already partitioned into consecutive ascending runs into a single sorted list.
Linked Listslinked listsmergingsortingpointer manipulation - Greedy & IntervalsMediumAuto-gradedMinimum Breaks to Cover All Shifts with Rest Windows
Tests whether a candidate can apply an exchange-argument greedy to schedule the fewest rest-window insertions so every worker shift is covered without violating a maximum continuous-work limit.
Greedy & Intervalsgreedyintervalsschedulingexchange argument - Data Structure DesignMediumAuto-gradedSimulate a TTL-Aware LRU Cache with Operation Log
Tests ability to simulate a fixed-capacity LRU cache where entries expire after a per-entry TTL, processing a sequence of GET/PUT/DELETE operations.
Data Structure Designdata structurescachesimulation - BehavioralMediumModel answerReprioritize Mid-Sprint When a Critical Bug Hits Production
Demonstrate how you triage competing demands, protect team momentum, and make transparent trade-off decisions when an urgent incident collides with planned work.
Behavioralbehavioralprioritizationincident managementtime management - Statistics & ExperimentsHardModel answerDesign a Composite Engagement Score for a Content Feed
Design a single metric that captures meaningful user engagement in a ranked content feed, accounting for action heterogeneity, gaming, and long-term health.
Statistics & Experimentsmetric designengagementexperimentationstatistics - Greedy & IntervalsEasyAuto-gradedCount Peak Hours Across Venue Time Slots
Tests the ability to use a sweep line (difference array) to efficiently count how many time slots are simultaneously "active" and find the maximum overlap count.
Greedy & Intervalsgreedyintervalssweep line - Dynamic ProgrammingEasyAuto-gradedFill a Backpack With Exactly K Item Types
Tests whether a candidate can apply 0/1 knapsack DP to determine the maximum total value achievable by selecting items that collectively use exactly K distinct item types within a weight budget.
Dynamic Programmingdynamic programmingknapsackmemoization - Trees & GraphsEasyAuto-gradedMaximum Sum of Independent Nodes in a Tree
Tests tree DP by finding the maximum sum of node values when no two selected nodes may be adjacent (parent-child) in a rooted tree.
Trees & Graphstreedynamic programmingrecursion - Heaps, Sorting & SearchMediumAuto-gradedMinimum Maximum Workload: Assign Tasks to Workers
Tests ability to binary search on the answer to find the minimum possible maximum workload when distributing tasks among workers.
Heaps, Sorting & Searchbinary searchgreedysorting - Data Structure DesignMediumAuto-gradedReconstruct Versioned Key-Value Store from Operation Log
Tests the ability to replay a sequential log of set/delete operations on a key-value store and answer point-in-time value queries efficiently.
Data Structure Designdata structuressimulationversioned storehash map - Linked ListsMediumAuto-gradedSort a Linked List Using Merge Sort
Tests pointer manipulation by implementing bottom-up merge sort on a singly linked list represented as a dict-based node structure.
Linked Listslinked listsmerge sortpointer manipulation - Dynamic ProgrammingMediumAuto-gradedMinimum Cost to Visit All Checkpoints
Tests bitmask DP over a small set of checkpoints to find the minimum-cost path that visits every checkpoint exactly once, starting and ending at a fixed depot.
Dynamic Programmingdynamic programmingbitmask DPgraphs - Greedy & IntervalsEasyAuto-gradedMaximize Jobs Completed Before Their Deadlines
Tests greedy scheduling with deadlines: select and order unit-duration jobs to maximize the count of jobs finished on or before their individual deadlines.
Greedy & Intervalsgreedyintervalssorting - Stacks & QueuesHardAuto-gradedValidate Nested Expressions with Typed Bracket Scopes
Tests bracket matching with complex rules: typed pairs, mandatory ordered sub-structure inside scopes, and precedence-aware nesting constraints.
Stacks & Queuesstacksbracket matchingparsingsimulation - Trees & GraphsMediumAuto-gradedMinimum Steps to Collect All Treasure on a Grid
Tests BFS shortest-path reasoning on a grid by finding the minimum steps to collect all treasure chests from a starting position, visiting each chest at least once.
Trees & GraphsgraphsBFSgridshortest path - Math & Bit ManipulationMediumAuto-gradedCount Lattice Paths Through Forbidden Checkpoints
Tests combinatorial counting of grid paths using inclusion-exclusion and binomial coefficients, requiring precise arithmetic on a bounded lattice.
Math & Bit Manipulationcombinatoricsmathdynamic programming - System DesignEasyModel answerDesign a Low-Latency LLM Inference API Service
Design a production-ready HTTP service that serves a single large language model to thousands of concurrent users with low latency and high throughput.
System Designsystem designLLM servinginferencescalability - Trees & GraphsHardAuto-gradedFastest Delivery Route with Fuel Stop Limit
Tests the ability to apply Dijkstra's algorithm augmented with a constraint dimension (fuel stops used) to find the minimum-time path in a weighted graph.
Trees & Graphsgraphsdijkstrashortest pathdynamic programming - Linked ListsEasyAuto-gradedFind the Entry Point of a Functional Rho-Shaped Sequence
Tests cycle detection on an index-based "next" array by finding where the tail of a rho-shaped sequence first enters its cycle.
Linked Listslinked listscycle detectiontwo pointers - Heaps, Sorting & SearchMediumAuto-gradedRank Teams by Weighted Voting Tiers
Tests the ability to design a multi-key custom sort comparator over aggregated data using a priority-queue-style ranking of teams from ranked ballots.
Heaps, Sorting & Searchsortingcustom sort keyshash maps - Trees & GraphsHardAuto-gradedShortest Evacuation Route Through a Burning Building
Tests BFS shortest-path reasoning on a grid with time-dependent obstacles, requiring candidates to track fire spread and find the minimum escape steps simultaneously.
Trees & Graphsbfsgridshortest pathmulti-source bfs - Data Structure DesignEasyAuto-gradedSimulate a Bounded LRU Cache with Hit/Miss Tracking
Tests ability to simulate a sequence of GET/PUT operations on a capacity-bounded LRU cache and return accumulated hit/miss statistics.
Data Structure Designdata structuressimulationcache - Stacks & QueuesEasyAuto-gradedSimulate a Cafeteria Serving Queue
Tests the ability to simulate a round-robin service queue where customers cycle back if unserved, tracking when each customer is finally served.
Stacks & Queuesqueuesimulationdata structures - Machine LearningEasyModel answerSpot and Fix Feature Leakage in a Churn Model
Identify subtle data leakage in a customer churn prediction pipeline and explain how to fix it without sacrificing model utility.
Machine Learningmachine learningfeature engineeringdata leakageclassification