practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6135 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.
- 6135
- Problems
- 2276
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 3001–3030 of 6135 results
- System DesignHardModel answerOffline Audio Moderation Pipeline: End-to-End Architecture
Design a batch pipeline that screens stored audio files for policy violations, labels each as safe, unsafe or uncertain, and routes uncertain ones to human reviewers.
System Designml-system-designaudiopipeline-orchestrationhuman-in-the-loop - Arrays & HashingMediumAuto-gradedCross-Array Pair Sum Check on Two Ordered Lists
Decide whether one value from each of two sorted lists adds up to a target, using a linear-time opposite-direction two-pointer scan with constant extra space.
Arrays & Hashingtwo-pointerssorted-arraystwo-sumoverflow-safety - System DesignHardModel answerDesigning a Continuously Refreshed Merchant Attribute Store
Design a platform that links merchants to external sources, refreshes their attributes on schedule, resolves conflicts with provenance, and serves low-latency reads even when upstreams fail.
System Designsystem-designdata-pipelinesentity-resolutionrate-limiting - Statistics & ExperimentsMediumModel answerBudget Reallocation Plan with Experiment Design and Risk Controls
Design a constrained next-quarter program budget mix to maximize net profit, estimate the upside, and lay out an experiment and analysis plan to validate it.
Statistics & Experimentsexperiment-designbudget-allocationcausal-inferencepower-analysis - BehavioralMediumModel answerPrepare for a values-focused screen with a 90-minute budget
Plan a 90-minute prep, deliver a five-minute opener with a principled challenge, build a mutual-fit rubric, and write an email asking for a shorter interview loop.
Behavioralbehavioralcommunicationculture-fitprioritization - Machine LearningMediumModel answerLearning a Collaboration Closeness Score for Coworker Pairs
Design an ML system that scores how closely any two employees in an organization collaborate, covering signals, proxy labels, training, evaluation, privacy and serving.
Machine Learningml-system-designgraph-learningembeddingslink-prediction - Data Structure DesignMediumModel answerFixing a Lost-Update Race in a Deposit Method You Cannot Edit
Diagnose the race in an account deposit that reads, pauses, then writes, and add locking through a subclass, wrapper or embedding in Python and Go without touching the original type.
Data Structure Designconcurrencyrace-conditionmutexpython - Arrays & HashingEasyAuto-gradedHorvitz-Thompson Event Rate from Weighted Inspection Records
Estimate a population-wide event rate from samples drawn with known unequal inclusion probabilities, using inverse-probability weighting divided by the population size.
Arrays & Hashinginverse-probability-weightingsamplingestimationhorvitz-thompson - System DesignMediumModel answerDesign a Versioned Product Catalog with Atomic Launches
Design a multi-tenant catalog backend with draft/publish workflows, grouped launches, search, and safe rollback, serving 100K peak read QPS at P99 under 25 ms.
System Designsystem-designcqrsversioningcaching - Arrays & HashingMediumAuto-gradedRover on a Walled Floor Plan with Blocked Cells
Simulate a rover on a bounded rectangular grid that turns, steps forward, and steps backward, skipping any step that leaves the grid or enters a blocked cell.
Arrays & Hashingsimulationhash-setgridmodular-arithmetic - System DesignMediumModel answerFixing a Type-Ahead Search Box That Shows Stale Results
Diagnose why a React search component sometimes displays results for an older query, then fix it with effect cleanup and request cancellation, and prove the fix with a deterministic test.
System Designreactrace-conditionabortcontrolleruseeffect - System DesignMediumModel answerTime-Indexed Service for Multi-Topic Vehicle Recording Files
Design and build a service that ingests recorded vehicle sessions from MCAP files, stores them with a time index, and exposes APIs to list sessions and fetch messages by timestamp.
System Designmcapprotobufsqlitetime-index - Greedy & IntervalsMediumAuto-gradedStock Piles Priced by Remaining Count: Maximum Earnings
Greedy selling from the largest pile, solved in bulk with sorting and arithmetic-series sums because the number of sales is too large to simulate one by one.
Greedy & Intervalsgreedysortingarithmetic-seriesmath - Arrays & HashingMediumAuto-gradedBalanced Alternating Sums After One Removal
Count positions whose removal makes the sum at even positions equal the sum at odd positions, testing prefix/suffix sums and the parity shift after a deletion.
Arrays & Hashingprefix-sumsparityarraycounting - BehavioralMediumModel answerMotivation and Values Fit for a Product-Focused Data Role
Answer a "why this company" behavioral question for a data role by linking personal motivation and company values to concrete, evidence-backed stories.
Behavioralbehavioralmotivationvalues-fitstar-method - Data Structure DesignMediumAuto-gradedDual-Quota Request Throttle with Sliding Time Window
Simulate a throttle that enforces a per-user and a per-game quota over a sliding time window, recording a request only when both quotas have room.
Data Structure Designsliding-windowdequehash-mapsimulation - Machine LearningHardModel answerDesigning a Live Card-Payment Fraud Scoring Pipeline
Design an ML system that scores card payments inside the authorization path, handling extreme class imbalance, delayed labels, concept drift, and uneven costs of errors.
Machine Learningfraud-detectionimbalanced-datafeature-storeconcept-drift - System DesignHardModel answerDesign a GPU Test Pipeline in Jenkins Across Driver Matrices
Design a Jenkins-based CI system that builds a graphics stack and runs GPU tests across hardware, driver and OS combinations, with flake handling, gating and safe driver rollouts.
System Designjenkinsci-cdgputest-sharding - Trees & GraphsMediumAuto-gradedBatch Ratio Lookup Over Linked Quantities
Answer many ratio queries between named quantities from pairwise ratio facts, using a weighted union-find or component precomputation instead of a search per query.
Trees & Graphsunion-findgraphweighted-union-findbatch-queries - Arrays & HashingEasyAuto-gradedCategory Revenue and Fulfillment Report from Three Tables
Join order, product and category records, group by category name, and compute total revenue, mean revenue per row and the share of completed rows, using hash maps.
Arrays & Hashinghash-mapaggregationjoingrouping - StringsMediumAuto-gradedBuild an expression from 1 to 9 that hits a target
Tests depth-first backtracking over operator choices, on-the-fly evaluation without re-parsing, and deterministic tie-breaking when several valid answers exist.
Stringsbacktrackingdfsrecursionstring-construction - Heaps, Sorting & SearchEasyAuto-gradedClean, Impute and Rank Student Score Records
Filter records with too many missing values, fill gaps with per-subject medians, then pick the top five using a multi-key sort with tie-breaks.
Heaps, Sorting & Searchsortingmediandata-cleaningsimulation - System DesignMediumModel answerBuilding a Crash-Safe Shared Audit Log Writer in Java
Design a thread-safe file logger whose records never interleave, and explain how fsync, batching and OS caching trade throughput against durability.
System Designconcurrencyfile-iodurabilityfsync - Data Structure DesignMediumAuto-gradedBidirectional Walk Over a CIDR Block's Addresses
Simulate a two-way cursor over the IPv4 addresses of a CIDR block using integer arithmetic, with exact boundary and no-move-on-failure rules.
Data Structure Designiteratorbit-manipulationcidrsimulation - System DesignMediumModel answerDesigning an Analytics Data Pipeline Across Cloud, Hybrid and Multi-Cloud
Design a pipeline from operational systems to analytics, then adapt it for a hybrid on-prem and cloud setup and map it onto AWS and Azure, defending each tool choice.
System Designdata-pipelinehybrid-cloudawsazure - Data Structure DesignHardModel answerRetroactive Pay Ledger with Rate Changes and Shift Logging
Design a class that records rate changes and shifts in any order, and reports total earnings under the current rate schedule using prefix sums and binary search.
Data Structure Designdesignprefix-sumbinary-searchintervals - System DesignHardModel answerCritiquing a Flag Service Proposal for an Inference API
Review a proposed runtime toggle service that polls one database, then rank its weaknesses and explain how to deliver the feedback to the author.
System Designdesign-reviewfeature-flagsreliabilityfailure-modes - System DesignHardModel answerCycle-Safe Editing and Loop Limits for a Workflow Engine
Design a service that blocks cyclic dependency edits, pins each run to a stable graph version, and caps retries and dynamic expansion so execution always terminates.
System Designsystem-designdagcycle-detectionworkflow-engine - Data Structure DesignMediumModel answerOrg Chart Inference with Manager and Peer Links
Design a structure that records manager and same-manager links between employee IDs and answers whether one employee sits above another, including facts inferred from earlier updates.
Data Structure Designunion-finddesigngraphstransitive-closure - System DesignMediumModel answerTrending Pages Leaderboard: Top K URLs in a Rolling Window
Design a pipeline that ranks the K most-viewed URLs over a rolling time window, covering partitioned counting, correct merging, viral-URL skew, late events, and exact versus approximate counts.
System Designsystem-designstreamingtop-ksliding-window