practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6000 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.
- 6000
- Problems
- 2221
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 541–570 of 3779 results
- SQL & DataMediumModel answerMonthly Channel Cohorts: Measuring First-Month Account Usage
Write a SQL report of how many new banking users make three or more completed debits totaling at least $50 in their first 30 days, grouped by signup month and channel, excluding immature cohorts.
SQL & Datasqlcohort-analysisleft-joinconditional-aggregation - Data Structure DesignMediumModel answerSearchable Dropdown Input with Live Async Suggestions in React
Implement a React search box whose dropdown fills with suggestions from an abortable async source and works fully by keyboard and mouse, without ever showing outdated results.
Data Structure Designreacthooksasyncaccessibility - Data Structure DesignHardModel answerDynamic Room Occupancy Tracker with Top-K Ranking Query
Design an in-memory system tracking occupancy and entry times across rooms, returning the busiest rooms in optimal logarithmic time per update.
Data Structure Designdesign-dsheaps-sortinghash-map - Machine LearningHardModel answerBuilding a Permission-Aware Document Q&A Assistant with Citations
Design a retrieval-augmented question-answering assistant over internal company documents, with ML detail on each stage, document-level access control, grounded cited answers and failure handling.
Machine Learningragretrievalrerankingllm-fine-tuning - Statistics & ExperimentsMediumModel answerDiagnosing a Quarterly Decline in Driver Satisfaction Scores
A ride-hailing platform's driver satisfaction index fell 10% quarter over quarter. Diagnose the cause, then design and evaluate an intervention in a two-sided marketplace.
Statistics & Experimentsroot-cause-analysisexperiment-designmetric-decompositionmarketplace - Statistics & ExperimentsMediumModel answerChoosing a Count Model for Contacts per Caller and Checking Fit
Pick a probability model for how many distinct people each caller contacts in a period, estimate it, and show with tests and diagnostics that it describes the data well enough for capacity planning.
Statistics & Experimentscount-datapoissonnegative-binomialoverdispersion - Machine LearningMediumModel answerPreprocessing a Mixed Tabular Dataset Across Model Families
Design leak-safe preprocessing for zero-heavy counts, skewed money, a binary flag and two collinear measurements, and compare choices for linear, tree and k-NN models.
Machine Learningfeature-engineeringscalingmulticollinearitymissing-data - System DesignMediumModel answerBuild a Reliable Private Messaging Backend for Two-Person Chats
Design a backend for private two-person chats that stores messages durably, keeps them in order, tolerates retries, replays to offline devices, and restricts access to participants.
System Designsystem-designmessagingwebsocketidempotency - Statistics & ExperimentsMediumModel answerDesigning Metrics and A/B Tests for Harmful Feed Content
Define a severity-aware metric for harmful content exposure, then design a randomized experiment to test a feed intervention despite rare outcomes, costly labels, and adversaries.
Statistics & Experimentsab-testingmetricstrust-and-safetysampling - System DesignMediumModel answerPaging Through a Huge Ledger Without Gaps or Slowdowns
Design a paginated transaction-history API over a PostgreSQL table with billions of rows, staying fast on deep pages and correct while new rows keep arriving.
System Designpaginationkeyset-paginationpostgresqlindexing - System DesignHardModel answerDesign an In-Memory Auto-Complete Service and Scale It Self-Contained
Design an autocompletion engine using a custom in-memory trie, cover node memory optimizations and hot swaps, and scale out horizontally without adding third-party clusters.
System Designsystem-designtriecachingscaling - BehavioralEasyModel answerData Science Internship Screen: Four Behavioral Prompts
Prepare structured, specific answers to four behavioral prompts for a data science internship screen, covering introduction, a project deep dive, a hard project, and fast learning.
Behavioralbehavioraldata-scienceinternshipproject-deep-dive - Statistics & ExperimentsMediumModel answerQuantifying Business Value from ETA Reduction in Ride-Hailing
Evaluate the business impact of a 10% lower pickup ETA using robust experimental design, interference-aware causal methods, and an NPV framework accounting for cross-tier cannibalization.
Statistics & ExperimentsA/B TestingExperiment DesignCausal InferenceMarketplace Economics - Statistics & ExperimentsHardModel answerSynthetic Control for a Single-Unit Rollout: Validity and Inference
Defend synthetic control as a causal design for one treated unit, covering its assumptions, predictor selection, regularization, permutation-based inference, and fallback options.
Statistics & Experimentssynthetic-controlcausal-inferenceplacebo-testspanel-data - Statistics & ExperimentsHardModel answerMeasuring a Premium-Only Feature Launch: Goals, Metrics, ROI
Plan how to judge a feature reserved for paying users: pick a goal, build a metric hierarchy, estimate ROI, quantify cannibalization, and design the experiment and logging.
Statistics & Experimentsproduct-analyticsab-testingmetricsroi - StringsMediumModel answerBuild a Streaming Lisp-Style Expression Reader with Exact Error Positions
Write a single-pass reader for a small Lisp-like syntax with integers, symbols and nested lists, reporting the first error with a clear message and exact character index.
Stringsparsingrecursive-descenterror-handlings-expression - Data Structure DesignMediumModel answerDesigning a Validated In-Memory Cache for Repeated Parsing
Speed up a script that repeatedly parses files by adding a thread-safe, bounded, in-memory cache, and justify its keys, eviction, staleness checks and complexity.
Data Structure Designcachinghash-maplruconcurrency - BehavioralHardModel answerStaff-Level Walkthrough of a Past Engineering Project
Prepare and deliver an architecture-focused presentation of a complex past project, covering ownership, tradeoffs, failures, impact, and hindsight, then defend it under senior-level follow-ups.
Behavioralproject-deep-divearchitectureleadershiptradeoffs - System DesignMediumModel answerBuild a Reliable Card Payment Backend with External PSPs
Design a backend that takes a card payment from checkout through an external processor to a recorded, reconcilable transaction, with no double charges and no lost successes.
System Designpaymentsidempotencyledgerreconciliation - Machine LearningHardModel answerDesigning a Quality Gate for a Permission-Aware Document Q&A Assistant
Design an offline and online evaluation system for a retrieval-based enterprise assistant, covering retrieval, faithfulness, citations, abstention, access control, freshness and cost.
Machine Learningragllm-evaluationretrieval-metricsllm-as-judge - Stacks & QueuesMediumModel answerBuild a Tiny Expression Language Interpreter in Three Stages
Implement a lexer, recursive-descent parser and evaluator for a small integer language with variables, unary minus, precedence, truncating division and print.
Stacks & Queuesparsinginterpreterrecursive-descentast - Statistics & ExperimentsMediumModel answerPilot Design for Adding Bike Couriers to a Dense City Core
Design an experiment to decide whether adding bicycle couriers to a car-only delivery marketplace improves efficiency, covering metrics, geo randomization, confounders and cannibalization.
Statistics & Experimentsab-testingmarketplacecluster-randomizationswitchback - Statistics & ExperimentsHardModel answerDesigning a Native E-Commerce Shopping Module Experiment
Define a comprehensive metric hierarchy, interference strategy, power analysis, and multi-objective launch framework for an embedded feed feature.
Statistics & ExperimentsA/B TestingExperiment DesignMetric DesignCUPED - System DesignMediumModel answerPer-User Impression Limits Over a Sliding Time Window
Design a low-latency service that decides whether an ad may be shown to a user, enforcing "at most N impressions in the last W" caps across ad, group and campaign scopes.
System Designsystem-designrate-limitingsliding-windowdistributed-systems - BehavioralEasyModel answerDemonstrating Product Sense and Project Impact
Articulate an end-to-end analytics project, covering problem framing, metric trade-offs, experimental rigor, quantifiable outcomes, and practical reflections.
Behavioralbehavioralproduct-thinkexperimentationmetrics - System DesignHardModel answerDimensional Model for a Marketplace Analytics Warehouse
Design fact and dimension tables for a marketplace to serve five business metrics, covering grain, keys, partitioning, late data, deduplication, anonymous users and changing seller attributes.
System Designdata-warehousedimensional-modelingstar-schemascd - BehavioralHardModel answerDefining and Implementing AI Safety in Software Engineering
Articulate a pragmatic framework for AI safety, balance short-term vs. long-term risks, analyze social impacts, and incorporate safety mechanisms across the software lifecycle.
Behavioralai-safetybehavioralengineering-practicesproduct-lifecycle - Machine LearningMediumModel answerReal-Time Risk Scoring for Account Linking and Payments
Design an ML pipeline that scores bank-link attempts, identity checks, and transactions in real time, mapping risk to graded actions while keeping false positives low.
Machine Learningfraud-detectionml-system-designgraph-featuresimbalanced-data - BehavioralMediumModel answerResetting Scope When the Delivery Date Cannot Be Met
Tell a story about a deadline your team could not realistically meet, showing how you used numbers and trade-off options to reach an agreed, quality-preserving plan.
Behavioralbehavioralstakeholder-managementestimationprioritization - System DesignMediumModel answerBuild a Regression-Testing Platform for LLM Agent Releases
Design a platform where agent-building teams can test a new prompt or model against a baseline and see the effect on answer quality, tool usage, latency and cost before shipping.
System Designml-system-designllm-evaluationagentsllm-as-judge