practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6035 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.
- 6035
- Problems
- 2235
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 4861–4890 of 6035 results
- Machine LearningHardModel answerMitigating Reward Model Exploitation in RLHF
Design detection systems and training safeguards to prevent language models from gaming reward functions during reinforcement learning optimization.
Machine Learningreinforcement-learningrlhfreward-modelingpolicy-optimization - Data Structure DesignMediumModel answerConstant-Time Range Queries and Stack with Maximum Tracking
Implement two data structures: one supporting fast interval sum queries on a fixed array, and a stack that efficiently tracks and removes its maximum element.
Data Structure Designprefix-sumstackheapdata-structures - System DesignHardModel answerStorage System for Compiled Build Outputs
Design a scalable distributed storage service that handles immutable binary files produced by continuous integration pipelines.
System Designdistributed-systemsstoragescalabilityconsistency - Statistics & ExperimentsMediumModel answerWhy Does the Standardized Sample Mean Converge to Normal?
Explain what quantity becomes approximately normal as sample size grows, the theorem that guarantees it, why it holds, and when it breaks down.
Statistics & Experimentscentral-limit-theoremstatistical-inferenceasymptotic-theory - System DesignMediumModel answerThreads vs Processes in Python: Concurrency Trade-offs
Compare thread-based and process-based concurrency in Python, covering the GIL, memory isolation, and which model fits I/O-bound vs CPU-bound workloads.
System Designconcurrencypythongilmultiprocessing - Data Structure DesignEasyAuto-gradedSimulate a Bounded LRU Cache with Get/Put Operations
Tests the ability to simulate a fixed-capacity LRU cache by processing a sequence of get/put operations and collecting all get results in order.
Data Structure Designdata structurescachesimulation - Data Structure DesignMediumModel answerMaintaining a Random Sample from a Stream of Unknown Length
Implement a data structure that keeps k randomly chosen items from a stream where you don't know the total count ahead of time.
Data Structure Designreservoir-samplingstreaming-algorithmsrandomized-algorithms - SQL & DataMediumModel answerBuild a Region-Level Revenue Summary with Pandas
Merge two DataFrames on a shared key, then aggregate transaction amounts by region to produce a sorted summary of total and average spend.
SQL & Datapandasgroupbymergeaggregation - System DesignHardModel answerDesign a Distributed Financial Ledger System
Build a strongly consistent, double-entry ledger handling concurrent writes, balance queries, and audit trails at scale.
System Designdistributed-systemsconsistencytransactionsfinancial-systems - Machine LearningMediumModel answerLLM Architecture: Evolution, Multimodal Fusion, and Normalization
Explain generational advances in LLM families, how vision-language models integrate images, and why transformers use layer norm with pre-norm placement.
Machine Learningllmtransformersmultimodalnormalization - Trees & GraphsMediumAuto-gradedAxis-Aligned Bounding Boxes of Grid Regions
Tests BFS/DFS connected-components traversal on a 2D grid to locate distinct filled regions and compute the tightest enclosing rectangle for each.
Trees & Graphsbfsdfsconnected-componentsgrid - Arrays & HashingMediumModel answerProportional Stratified Sampling with Largest Remainder Allocation
Sample records from grouped data while preserving stratum proportions, using the largest remainder method to allocate exact counts and seeded random selection.
Arrays & Hashingsamplinggroupinghash-tablerandomization - System DesignHardModel answerBuild a Global Marketplace Pricing System for Multiple Currencies
Design the full stack — data model, APIs, exchange-rate pipeline, rounding, and UX — for a travel marketplace that lets guests browse and pay in any of ~50 currencies.
System Designcurrencypaymentsdistributed-systemsdata-modeling - Statistics & ExperimentsHardModel answerConcurrent A/B Test Design with Interaction Effects
Design and analyze experiments for two product changes launching simultaneously, addressing interaction effects, power, and sequential monitoring.
Statistics & Experimentsexperiment-designfactorial-designinteraction-effectspower-analysis - Trees & GraphsMediumAuto-gradedShortest Path Through a Grid With Keys and One-Way Portals
Tests BFS/Dijkstra on an augmented state space where position must be combined with a key-collection bitmask, and directional arrow tiles enforce constrained traversal.
Trees & Graphsbfsdijkstrabitmaskgrid - Heaps, Sorting & SearchHardAuto-gradedSelect Best Available Venues by Ranking Criteria
Tests filtering, multi-level sorting with custom tie-breaking rules, and efficient top-K selection from structured data.
Heaps, Sorting & Searchsortingfilteringheappriority-queue - Statistics & ExperimentsMediumModel answerProject Selection with Resource Constraints and Quality Factors
Choose between two fixed-price software projects, modeling costs, capacity, rework, and schedule risk to maximize profit.
Statistics & Experimentsoptimizationcost-benefit-analysisrisk-analysis - Data Structure DesignMediumAuto-gradedKey-Value Store Operation Simulator
Tests ability to use hash maps for constant-time operations and handle state transitions in a key-value store simulation.
Data Structure Designhash-mapsimulationdata-structures - Heaps, Sorting & SearchEasyAuto-gradedCombine Multiple Sorted Lists into a Single Sorted Sequence
Tests divide-and-conquer merging and two-pointer techniques to efficiently combine many pre-sorted lists.
Heaps, Sorting & Searchdivide-and-conquertwo-pointersmerging - Machine LearningMediumModel answerBuild Linear Regression and MSE Loss Without Libraries
Code mean squared error from scratch, then build a linear regression class with fit and predict methods using gradient descent.
Machine Learninggradient-descentloss-functionsfrom-scratchnumerical-optimization - Statistics & ExperimentsMediumModel answerRegression Invariance Under Feature Transformations
Show mathematically how ordinary least squares predictions behave when features are linearly transformed, and contrast with regularized methods.
Statistics & Experimentslinear-regressionridge-regressionlassolinear-algebra - Statistics & ExperimentsMediumModel answerDesigning an A/B Test for a Queue-Jumping Feature
Design metrics and an experiment to evaluate a paid priority-matching feature in a two-sided marketplace where treatment and control groups share the same supply.
Statistics & Experimentsexperimentationtwo-sided-marketplacespillover-effectsmetrics-design - Statistics & ExperimentsMediumModel answerComparing Ad Distribution Models: Random vs. Deterministic Placement
Analyze two ad-serving approaches for a content feed: probabilistic per-item insertion versus fixed-quota allocation.
Statistics & Experimentsprobabilityvariancebinomial-distributionexpectation - System DesignHardModel answerBuild a Distributed Pipeline Execution Engine
Design a fault-tolerant scheduler that executes dependency graphs across a worker fleet with lease-based dispatch and deployment safety.
System Designdistributed-systemsschedulingstate-machinesconcurrency - Trees & GraphsMediumModel answerRobot Grid Exploration with Limited Sensing API
Navigate a robot through an unmapped grid with obstacles using only movement and turn commands to locate a target cell.
Trees & Graphsdfsbacktrackinggraph-traversalsimulation - BehavioralHardModel answerWalk Through a Product You Owned End-to-End with Proof
Pick one product or feature you drove from problem framing to launch and demonstrate ownership, metric rigor, risk management, and measurable impact.
Behavioralproduct leadershipexperimentationimpact measurementprioritization - SQL & DataMediumAuto-gradedMulti-Year Sales Analysis by Customer Demographics
Tests data joining, deduplication, cohort segmentation, conditional aggregation, and percentage calculations across multiple tables.
SQL & Datadata-manipulationaggregationcohort-analysis - Trees & GraphsHardModel answerShortest Path for a Hobbled Xiangqi Horse on a 10×9 Board
Find the minimum moves for a Chinese-chess horse to reach a target on a 10×9 grid, accounting for the leg-blocking movement restriction and obstacle squares.
Trees & GraphsBFSgraph traversalboard gamesshortest path - Greedy & IntervalsMediumAuto-gradedSingle Buy-Sell Stock Gain
Tests finding the maximum profit from one purchase and one sale in a price sequence using a single-pass greedy approach.
Greedy & Intervalsgreedyarrayssliding-window - System DesignMediumModel answerDesign an Asynchronous Job Service for Batch File Operations
Design an HTTP API and backend system to process large batches of files asynchronously, handling long-running work, job tracking, and failures.
System Designapi-designasync-jobsdistributed-systemsfault-tolerance