practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6036 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.
- 6036
- Problems
- 2235
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 2641–2670 of 3801 results
- System DesignHardModel answerDesign a Distributed Full-Text Search Engine with Boolean Queries
Design a scalable search system that indexes short user posts in near real-time and evaluates Boolean queries with stable cursor-based pagination.
System Designinverted-indexdistributed-systemsquery-parsingpagination - System DesignHardModel answerConcurrency Strategies for a Shared In-Memory Key-Value Store
Compare global, striped, and lock-free locking for a concurrent hash map, then design an optimal strategy for read-heavy workloads.
System Designconcurrencylockingkey-value storeread-write locks - System DesignMediumModel answerToken-Bucket Rate Limiter in Node.js/Express: Build & Review
Implement a file-configured Express middleware using the token-bucket algorithm, then explain its design trade-offs as you would in a peer code review.
System Designrate-limitingnode.jsexpresstoken-bucket - SQL & DataMediumModel answerDaily Funnel Metrics and 1-Day Retention in SQL and pandas
Build a validated event layer, then compute daily funnel counts, per-user first-event dates, and a one-day retention rate using SQL and pandas.
SQL & Datasqlpandasfunnelretention - System DesignMediumModel answerStream Processing Pipeline for High-Velocity Robot Sensor Data
Design a fault-tolerant ingestion pipeline that sustains 2 GB/s of mixed telemetry from a distributed robot fleet with zero data loss and dual real-time and batch consumers.
System Designstreamingkafkadistributed-systemsdata-engineering - Machine LearningMediumModel answerML Fundamentals: Calibration, Features, Tokenization, Optimizers
Demonstrate working knowledge of probability calibration methods and metrics, feature selection strategies including neural approaches, subword tokenizer variants, and Adam optimizer mechanics.
Machine Learningmachine-learningdeep-learningnlpmodel-training - System DesignHardModel answerDesign a Multi-Provider Flight Price Aggregation System
Design a scalable service that aggregates, normalizes, and serves cheap flight offers from many providers under strict latency and cost constraints.
System Designsystem-designcachingdistributed-systemssearch - BehavioralHardModel answerLead a Multi-Team Project Under a Hard Deadline
Demonstrate cross-functional leadership, data-driven decisions, and honest self-reflection through one concrete project involving at least three functions.
Behavioralleadershipcross-functionaldata-drivenstakeholder-management - System DesignMediumModel answerEnd-to-End Python Solution Workflow in a Cloud Notebook
Walk through how you would design, implement, test, and document a Python coding exercise inside a cloud-hosted notebook environment from first principles.
System Designpythonnotebookssoftware-designtesting - Data Structure DesignMediumModel answerFile Storage with Quotas, Copy, and Compression
Build an in-memory file system tracking per-user storage limits, supporting file operations including duplication, compression, and quota-driven eviction.
Data Structure Designhash-mapheapobject-oriented-designbookkeeping - Dynamic ProgrammingHardModel answerTwo-Station Job Scheduling with Setups and a Downtime Window
Assign and sequence three jobs across two parallel stations to minimize makespan, handling sequence-dependent changeovers, a precedence constraint, and a station blackout period.
Dynamic Programmingschedulingcombinatorial-optimizationbranch-and-boundNP-hardness - Statistics & ExperimentsEasyModel answerScaling a Standard Normal: Distribution of Y = aX + b
Derive the mean, variance, and full PDF of an affine transformation of a standard normal random variable, and prove the result is still normal.
Statistics & Experimentsprobabilitynormal-distributionchange-of-variablesexpectation - Greedy & IntervalsMediumModel answerFirst Open Meeting Window Across All Employees
Sweep merged busy intervals to find the earliest gap of a required duration that fits within every employee's working hours.
Greedy & Intervalsintervalsheapmergescheduling - Machine LearningMediumModel answerFraud Scorer: Picking a Decision Threshold with Asymmetric Costs
Select and justify an operating threshold for a fraud probability scorer given asymmetric FP/FN costs, then cover calibration, drift monitoring, and safe rollout.
Machine Learningcost-sensitive learningthreshold selectioncalibrationdrift monitoring - System DesignHardModel answerDesign a Video Ad Insertion Platform for Streaming
Design a low-latency, fault-tolerant ad-insertion system for a live and on-demand video platform, covering decisioning, delivery, pacing, and measurement at scale.
System Designadsreal-time-biddingstreamingcdn - BehavioralMediumModel answerDescribing Your Most Impactful Engineering Project
Explain a technical project you're proud of, your role, key decisions, trade-offs, and outcomes—preparing for follow-up questions on challenges and lessons.
Behavioralbehavioralleadershipexperiencecommunication - SQL & DataMediumModel answerWindow Ranking Functions: Choosing the Right One for Top-N Queries
Explain how ROW_NUMBER, RANK, and DENSE_RANK behave differently when ties exist, and which to use depending on what "top N" actually means.
SQL & Datawindow-functionsrankingtiestop-k - BehavioralHardModel answerChampioning a Foundation-Model Initiative in a Safety-Critical Org
Explain how you would frame, evidence, and pitch a proposal to integrate vision-language models into an autonomous system program and earn real resources.
Behavioralleadershipstakeholder-alignmentml-strategyautonomous-systems - Machine LearningHardModel answerDesign a Hybrid Model Evaluation System with Human Review
Design a scalable evaluation platform that combines automated metrics, LLM-based judging, and human expert review to assess ML model outputs with full provenance tracking.
Machine Learningsystem-designmlopshuman-in-the-loopevaluation - Statistics & ExperimentsMediumModel answerRoot-causing a conversion drop after a forced app rollout
Diagnose a 50-basis-point signup conversion decline following a mandatory mobile app update with no A/B control group available.
Statistics & Experimentsquasi-experimentscausal-inferencemetric-decompositiondecision-making - Data Structure DesignMediumModel answerBuild a Bounded In-Memory File System with Auto-Rename
Design a trie-backed file system supporting path-based file insertion and directory listing, with a per-directory capacity cap and OS-style duplicate renaming.
Data Structure Designtriehash-mapfile-systemOOP - Machine LearningMediumModel answerPredictive Modeling for Wine Ratings from Chemical Properties
Build and validate a model that predicts wine ratings from chemical measurements, choosing appropriate problem framing, metrics, and feature analysis methods.
Machine Learningsupervised-learningfeature-engineeringmodel-evaluationordinal-prediction - Machine LearningHardModel answerRoute Each Order to One of Two Suppliers to Minimize Cost
Design a constrained decision model that selects a supplier per order to minimize expected total cost while keeping SLA attainment at or above 95% and staying within a monthly budget.
Machine Learningcost-sensitive learningcausal inferenceconstrained optimizationoff-policy evaluation - Statistics & ExperimentsMediumModel answerDefining Success Metrics and Running Product Experiments
Define a primary success metric for a consumer or enterprise product, identify supporting indicators, and design a rigorous experiment to move that metric.
Statistics & Experimentsmetricsexperimentationproduct-analyticscausal-inference - System DesignHardModel answerDesign a Real-Time Click Counter and a Cross-Device File Sync Service
Design two systems: a high-throughput ad click aggregator with idempotent deduplication, and a Dropbox-style file sync service with delta uploads and conflict resolution.
System Designstreamingkafkaflinkfile-storage - Data Structure DesignMediumModel answerBuild an Expiry-Aware LRU Cache Without Scanning Every Key
Design an in-memory cache that enforces capacity with LRU eviction and per-entry TTL, keeping expiration efficient without iterating all keys.
Data Structure Designcachelruttlconcurrency - Data Structure DesignMediumModel answerOrder Book Simulator with Fair Volume Participation
Build a limit order matching engine, then add participation-rate execution logic for one client, and finally extend to multiple clients with fair allocation.
Data Structure Designorder-bookpriority-queuesimulationgreedy - Statistics & ExperimentsMediumModel answerExperimentation Fundamentals: Statistical Testing and Causal Methods
Demonstrate your understanding of controlled experiments, error types, metrics design, confounding, and causal inference techniques for product analytics.
Statistics & Experimentsa-b-testingcausal-inferencestatisticsexperimentation - Statistics & ExperimentsEasyModel answerFermi Estimation: How Many Cars Does Annual US Spotify Spending Buy?
Decompose a large-scale spending estimate into bounded factors, produce a calibrated 90% confidence interval, and update it when one input is revealed.
Statistics & Experimentsfermi-estimationconfidence-intervalsuncertainty-quantification - BehavioralHardModel answerPitch Yourself, Then Prove It With an Experiment
Deliver a tight personal pitch, then walk through an A/B test end-to-end: design, execution, results, and the causal reasoning behind them.
Behavioralexperimentationcommunicationcausal inferenceproduct sense