practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6033 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.
- 6033
- Problems
- 2234
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 2701–2730 of 3799 results
- System DesignMediumModel answerDesign a Multi-Step Order Processing Pipeline
Design the backend system that moves a customer order through reservation, payment, fulfillment, and shipping while handling failures and partial states gracefully.
System Designdistributed-systemsevent-drivenidempotencysaga-pattern - Machine LearningMediumModel answerBuild an Evaluation Platform for a Tool-Using AI Agent
Design a safe, repeatable harness that runs a tool-calling agent offline, grades its trajectories, and gates releases without touching production state.
Machine Learningagent-evaluationml-infrastructurellm-opssystem-design - System DesignMediumModel answerBuilding a Resumable Multi-Tenant Partner API Ingestor
Design an ingestion service that pulls from thousands of heterogeneous partner APIs with resumable checkpoints, raw-first staging, fair per-tenant throttling, and replayable normalization.
System Designsystem-designdata-ingestionrate-limitingidempotency - System DesignHardModel answerDesign a Real-Time Collaborative Spreadsheet Service
Design a multi-user spreadsheet system where concurrent editors stay in sync, conflicts resolve correctly, and clients recover cleanly after disconnects.
System Designreal-timecollaborative editingconflict resolutionOT - Statistics & ExperimentsEasyModel answerPiecewise WTP Function: Modeling a Subscription Price Cap
Model a streaming service's willingness-to-pay curve as a piecewise linear function, compute marginal value per title, and explain why the cap exists.
Statistics & Experimentspiecewise functionsmarginal analysiswillingness-to-payextrapolation - Trees & GraphsEasyModel answerPath Sum Validation in Binary Trees
Determine whether any root-to-leaf path in a binary tree sums to a given target value.
Trees & Graphsbinary-treedepth-first-searchtree-traversal - System DesignHardModel answerDesign an Immutable Multi-Tenant Audit Log System
Design a compliance audit logging platform that ingests events at scale, proves tamper-evidence cryptographically, detects sequence gaps, and serves fast investigation queries.
System Designaudit-loggingcryptographymulti-tenancystream-processing - StringsEasyModel answerLog Ingestion Engine with Prefix-Operator Query Filtering
Build a two-phase pipeline that parses raw server log lines into structured records and filters them using a mini query language of typed prefix tokens.
Stringsparsingregexfilteringdesign - Statistics & ExperimentsEasyModel answerShould a Food Truck Join a Voucher Platform?
Model the unit economics of a deep-discount voucher deal, find the incremental break-even spend, and decide when the partnership helps or hurts profit.
Statistics & Experimentsunit-economicsbreak-evenincrementalityprofitability - Statistics & ExperimentsMediumModel answerDebiasing Crowd Ratings with a Hierarchical Rater Model
Build a latent-quality estimator for ads scored by uncalibrated reviewers, quantify uncertainty, and rank by a confidence-adjusted score.
Statistics & Experimentshierarchical-modelbayesianrater-biasranking - Data Structure DesignHardModel answerGreedy Text Tokenizer with Vocabulary Trie
Build a tokenizer that greedily matches the longest vocabulary token at each position, handling unknown characters with optional span merging.
Data Structure Designtriestring-matchingtokenizationgreedy-algorithms - System DesignMediumModel answerDebugging Multi-Step LLM Agent Tool Execution at Scale
Build an observability system to capture, diagnose, and query failures in LLM agent tool calls across retries and execution phases.
System Designdistributed-systemsobservabilityllm-agentstracing - Machine LearningMediumModel answerGuard a Coding Assistant Against Confidential Code Exposure
Design a safety pipeline that stops an LLM-powered coding tool from leaking secrets, internal credentials, or proprietary source code at training and inference time.
Machine Learningllmsafetyml-systemsinformation-security - Machine LearningMediumModel answerChoosing and Defending Metrics for a Rare-Class Abuse Detector
Pick, justify, and stress-test evaluation metrics for an imbalanced fake-account classifier, wiring thresholds to asymmetric action costs and biased labels.
Machine Learningimbalanced-classificationprecision-recallthreshold-tuningcalibration - BehavioralHardModel answerPrioritizing Market Launch Factors for a Social Video Platform
Rank four market-entry considerations, define measurement approaches, design a phased validation test, and identify launch risks with mitigation strategies.
Behavioralproduct-strategyprioritizationexperimentationrisk-management - Statistics & ExperimentsHardModel answerA/B Testing with Network Effects in Two-Sided Marketplaces
Design a rigorous experiment for a ranking algorithm change when users influence each other through marketplace interactions and social connections.
Statistics & Experimentsexperimentationcausal-inferencenetwork-effectssample-size - System DesignMediumModel answerAutocomplete Input with Hand-Rolled Debounce
Build a search input that fetches and displays suggestions as the user types, using a debounce you write yourself and handling stale responses, keyboard navigation, and cleanup.
System Designreactdebounceasyncaccessibility - System DesignMediumModel answerDesign a Personalized Article Feed Backed by Publisher APIs
Design a system that continuously pulls article metadata from third-party publisher APIs and serves each user a ranked, paginated feed based on the publishers and categories they follow.
System Designsystem-designfeedpollingpagination - System DesignMediumModel answerBuilding a Non-Blocking In-Process Publish/Subscribe Broker
Design a thread-safe pub/sub service whose publishers never wait on slow consumers, using per-subscription mailboxes, a snapshot-then-fan-out registry, and clean shutdown.
System Designconcurrencythreadingpub-subbackpressure - Statistics & ExperimentsMediumModel answerDiagnose a Skewed Revenue Distribution and Pick the Right Test
Read five summary statistics from a zero-heavy e-commerce dataset, name the distribution, and choose appropriate metrics and tests for an A/B experiment.
Statistics & Experimentsstatisticsa-b-testingdistributionshypothesis-testing - BehavioralMediumModel answerNavigating Ethical Pressure in Cross-Functional Teams
Demonstrate your approach to handling requests that conflict with policies, balancing compliance integrity with delivery speed in a distributed team environment.
Behavioralethicscomplianceleadershipcommunication - BehavioralMediumModel answerAnchor a Technical Deep Dive to Your Engineering Choices
Walk through one meaningful project by connecting the technical decisions you made to the career path that brought you to that work.
Behavioralcareer narrativeproject deep divetechnical ownershipdesign decisions - Statistics & ExperimentsHardModel answerCluster-randomized experiment design for a social feature with network effects
Design a cluster-based A/B test for a friend-invitation feature when user-to-user influence breaks SUTVA, covering partitioning, estimation, and spillover validation.
Statistics & Experimentsexperiment-designnetwork-interferencecausal-inferenceab-testing - Machine LearningMediumModel answerOOD Guardrails for a Domain-Restricted Financial Chatbot
Design a low-latency pipeline that classifies chatbot queries as in-domain or out-of-domain, routes them safely, and stays calibrated as traffic drifts.
Machine Learningood-detectionllm-guardrailsragdrift-monitoring - SQL & DataMediumModel answerSQL Window Functions, Join Cardinalities, Dedup, and Pandas Merges
Work through ten interconnected SQL and pandas tasks spanning aggregations with NULL handling, join types, set operations, window functions, views, duplicate management, and indexing strategy.
SQL & Datasqlpandaswindow-functions - BehavioralMediumModel answerHandling Conflict, Core Lessons, and Career Highlights
Discuss a workplace disagreement you resolved, a lesson that shaped your work, and a project that represents your best contributions.
Behavioralbehavioralleadershipcommunication - System DesignHardModel answerDesign a Table Booking Platform for Restaurants
Design a multi-restaurant reservation platform where diners search availability by party size and time, then book, modify, or cancel — without ever double-booking a table.
System Designsystem-designconcurrencydistributed-systemsdatabase - StringsMediumModel answerBuild a Holiday Gift Matcher from CSV Input
Parse participant data from a CSV string with quoted fields, validate entries, and create a round-robin assignment where no one gives a gift to themselves.
Stringsparsingvalidationalgorithmscsv - Trees & GraphsMediumModel answerCluster Exposures: Net Change per Asset Group
Find connected components in an asset correlation graph and return the summed position delta for each component as a labeled group.
Trees & Graphsgraph traversalconnected componentshash mapDFS - System DesignMediumModel answerServing Inventory From Spinning Disks With Tiny RAM
Design an inventory service on hard drives with little memory: layout records to minimize seeks, pin the index, cache hot items, batch writes, and keep reservations correct.
System Designstorage-enginecachingb-treewrite-ahead-log