practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5969 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.
- 5969
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 5881–5910 of 5969 results
- Stacks & QueuesHardAuto-gradedValidate Nested Tag Expressions with Typed Bracket Rules
Tests bracket matching using a stack to enforce context-sensitive nesting rules across four distinct bracket types with extra validity constraints.
Stacks & Queuesstacksbracket matchingparsingsimulation - Machine LearningMediumModel answerDetect and Fix Feature Leakage in a Loan Default Model
Identify subtle forms of target leakage in a credit risk pipeline and explain how to fix each without destroying predictive signal.
Machine Learningmachine learningfeature leakagecredit riskdata preprocessing - Machine LearningHardModel answerDesign an Online Experiment for a Ranking Model Upgrade
Plan and analyze an A/B test for a new learning-to-rank model replacing a heuristic ranker in a content feed, handling interference, novelty effects, and metric trade-offs.
Machine Learningmachine learningexperimentationrankingA/B testing - Machine LearningHardModel answerDetect and Correct Novelty Effects in an Online Ranking Experiment
Design a rigorous experiment to identify, quantify, and correct for novelty and primacy effects when A/B testing a new ML-driven content ranking model.
Machine Learningmachine learningonline experimentsA/B testingnovelty effect - Trees & GraphsMediumAuto-gradedRecover Build Order From Incremental Patch Dependencies
Tests whether candidates can apply topological sort (Kahn's algorithm or DFS) to determine a valid linear build order from a dependency graph of software patches.
Trees & Graphsgraphstopological sortBFSKahn's algorithm - Machine LearningMediumModel answerChoose the Right Metric for an Imbalanced Fraud Detector
Decide which evaluation metrics best capture a fraud detection model's real-world performance when only 0.3% of transactions are fraudulent.
Machine Learningmachine learningevaluation metricsimbalanced classificationfraud detection - Machine LearningMediumModel answerBuild a 2D Convolution Forward Pass Without ML Libraries
Implement conv2d from scratch in NumPy, correctly handling padding, stride, multi-channel inputs, and optional bias.
Machine Learningconvolutionnumpydeep-learning-fundamentals - Dynamic ProgrammingMediumAuto-gradedCollect Gems in a Grid with Fatigue Penalty
Tests grid-path DP with a carried state (fatigue level) that penalizes consecutive moves in the same direction, requiring careful state-space design and memoization.
Dynamic Programmingdynamic programminggridmemoizationstate machine - BehavioralMediumModel answerNavigating a Project That Missed Its Launch Deadline
Demonstrate self-awareness and growth by walking through a project that failed or fell short, using a structured STAR response.
Behavioralbehavioralfailureproject managementgrowth mindset - Heaps, Sorting & SearchEasyAuto-gradedTop-K Most Frequent Words With Tie-Breaking
Tests ability to retrieve the k most frequent words from a list, using lexicographic order as a tie-breaker, via a heap or sort-based approach.
Heaps, Sorting & Searchheapsortinghash map - Stacks & QueuesHardAuto-gradedLargest Rectangle Under a Skyline with Forbidden Zones
Tests the ability to apply a monotonic stack to find the largest rectangular area under a histogram while skipping columns that are marked as forbidden.
Stacks & Queuesmonotonic stackarraysgeometry - Stacks & QueuesMediumAuto-gradedValidate Nested Markup Tag Sequence
Tests bracket matching logic by verifying that a simplified markup string with typed opening/closing tags is correctly nested and properly closed.
Stacks & Queuesstackparsingsimulation - BehavioralHardModel answerAlign Skeptical Peers on a Critical Technical Standard Change
Describe a time you drove adoption of an important technical or process change when you had no authority over the engineers or teams who needed to change their behavior.
Behavioralbehavioralinfluencing without authorityleadershipcross-functional - BehavioralHardModel answerLead a Project That Shipped but Ultimately Failed in Production
Demonstrate self-awareness and leadership maturity by narrating a project you owned that succeeded technically but failed where it mattered most.
Behavioralbehavioralfailureleadershipownership - Arrays & HashingEasyAuto-gradedLongest Subarray with At Most K Distinct Flavors
Tests the classic sliding window pattern for finding the longest contiguous subarray containing at most K distinct values.
Arrays & Hashingarrayssliding windowhash map - Linked ListsHardAuto-gradedDetect Merge Point of Two Rho-Shaped Index Chains
Tests mastery of Floyd's cycle-detection algorithm and two-pointer merge-point finding applied to implicit linked lists encoded as index arrays.
Linked Listslinked listscycle detectiontwo pointers - SQL & DataEasyAuto-gradedSummarize Monthly Sales by Region
Tests ability to perform group-by aggregation over a list of transaction records, computing per-region monthly totals and counts.
SQL & Datadata manipulationgroup-byaggregation - Stacks & QueuesMediumAuto-gradedValidate Nested Scope Tags with Typed Bracket Pairs
Tests bracket matching by parsing a string of typed scope-open/close tokens and verifying correct nesting, ordering, and balance according to a precedence table.
Stacks & Queuesstacksbracket matchingparsingsimulation - SQL & DataMediumAuto-gradedSummarise Monthly Revenue by Region from Transaction Records
Tests group-by aggregation over a list-of-dict dataset, requiring candidates to compute per-region monthly totals, fill gaps, and apply a tie-break for ranking.
SQL & Datadata manipulationaggregationgroup-bydictionaries - Machine LearningMediumModel answerHandle Cold-Start for New Items in a Recommendation System
Design and evaluate a strategy to recommend newly added items before any user interaction data exists.
Machine Learningmachine learningrecommendation systemscold startfeature engineering - Dynamic ProgrammingMediumAuto-gradedMaximize Museum Tour Value With Energy Budget
Tests the 0/1 knapsack variant where you allocate a fixed energy budget across museum exhibits with costs and values, but some exhibits are only accessible after visiting a prerequisite.
Dynamic Programmingdynamic programmingknapsackprerequisites - Math & Bit ManipulationMediumAuto-gradedTime 45 Minutes Using Two Non-Uniform Burning Cords
Tests logical reasoning about burn-time budgets and how lighting both ends of a cord precisely halves its remaining duration regardless of density.
Math & Bit Manipulationlogicreasoningmath - Trees & GraphsHardAuto-gradedMinimum Batches to Complete All Courses with Prerequisites
Tests topological ordering (Kahn's algorithm / BFS layering) to schedule dependent courses into the fewest sequential batches where each batch runs in parallel.
Trees & Graphsgraphstopological-sortBFS - BehavioralHardModel answerAlign a Reluctant Peer Team to Adopt Your Technical Standard
Demonstrate how you drove adoption of a cross-team technical standard when you had no authority over the engineers who needed to change their behavior.
Behavioralbehavioralinfluencing without authoritycross-functional collaborationtechnical leadership - SQL & DataMediumAuto-gradedRunning Department Budget Balance by Month
Tests the ability to compute a month-over-month running total (cumulative sum) of expenses per department, mimicking a SQL window function with PARTITION BY and ORDER BY.
SQL & Datawindow functionsrunning totalsdata aggregationpandas-style logic - BehavioralHardModel answerTurn Harsh Mid-Project Feedback Into Lasting Change
Demonstrate how you processed and acted on critical, unexpected feedback delivered during a high-stakes project, not at a safe review boundary.
Behavioralbehavioralfeedbackself-awarenessgrowth mindset - Heaps, Sorting & SearchEasyAuto-gradedTop-K Most Frequent Words by Score
Tests ability to rank words by a weighted frequency-length score, applying top-k selection with a precise tie-breaking rule.
Heaps, Sorting & Searchheapsortingtop-kstrings - StringsMediumAuto-gradedGroup Cipher Variants by Scrambled Key
Tests anagram-grouping on structured strings with a prefix/suffix schema, requiring careful key extraction, normalization, and tie-breaking for sorted output.
Stringsstringsanagram groupingsortingparsing - System DesignEasyModel answerDesign a URL Shortener with Fast Redirect Lookups
Design a system that converts long URLs into short codes and resolves them to the original URL with low latency at modest scale.
System Designsystem designstorageindexinghashing - Data Structure DesignMediumAuto-gradedSimulate a Frequency-Eviction Cache (LFU Cache)
Tests ability to simulate a Least-Frequently-Used cache by processing a sequence of get/put operations and returning the complete history of return values.
Data Structure Designdata structurescachesimulationhash map