practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6051 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.
- 6051
- Problems
- 2239
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 2371–2400 of 3812 results
- Machine LearningHardModel answerDesigning a Credit Offer Recommendation Engine
Design an end-to-end ML system that serves personalized financial product offers to millions of users, handling sparse delayed conversion signals and strict latency requirements.
Machine Learningrecommendation systemsfeature engineeringdelayed feedbackmulti-task learning - System DesignMediumModel answerTime-Aware Airport Activity Recommender System
Design a real-time system that suggests safe activities during airport layovers while guaranteeing travelers never miss their connecting flights.
System Designreal-time systemsrecommendation systemsmobile architecturerisk management - System DesignHardModel answerBackend Architecture for a Scalable Group Messaging Platform
Design the server-side core of an enterprise chat product: APIs, storage, idempotent and ordered message delivery, versioned membership access control, and real-time fan-out at scale.
System Designmessagingidempotencystoragereal-time-delivery - BehavioralMediumModel answerNavigating Cross-Functional Disagreement as a Game PM
Show how you diagnose partner objections, realign on shared player and business goals, and drive a scoped decision when a proposal meets resistance.
Behavioralcross-functional-collaborationconflict-resolutionproduct-decisionsgame-product - System DesignMediumModel answerBuild a Policy-Driven Expense Approval Engine
Design an extensible rule evaluation system that validates expense reports against configurable business policies and returns a structured approval decision.
System Designobject-oriented designextensibilitystrategy patternpython - Statistics & ExperimentsHardModel answerTesting Product Changes in a Multi-Sided Marketplace
Design A/B tests for feature launches in a delivery marketplace, addressing unit selection, metric definition, interference, and trade-offs across users, merchants, and revenue.
Statistics & Experimentsexperimentationcausal-inferencemarketplaceproduct-metrics - System DesignMediumModel answerObject-Oriented Design of a Minesweeper Game with Per-Cell Mine Probabilities
Design an OO Minesweeper where each cell carries an independent mine probability, covering initialization, class model, click/print APIs, state transitions, and testability.
System Designobject-oriented-designstate-machineflood-filldependency-injection - BehavioralMediumModel answerStructuring Behavioral Answers for Technical Program Manager Roles
Prepare cohesive responses to common TPM behavioral prompts: intro, project history, motivation, challenges, and missed deadlines.
Behavioralbehavioraltechnical-program-managerSTAR-methodleadership - Trees & GraphsHardModel answerCheck Whether a Node Sequence Is a Valid BFS on a Tree
Given an undirected tree and multiple permutations of its nodes, determine for each permutation whether it could be the dequeue order of some BFS starting at its first element.
Trees & GraphsBFStreessimulationhashing - System DesignHardModel answerDesign Data Models and Pipelines for a Robotaxi Fleet
Design the analytics data model for a remote vehicle assistance function and an end-to-end pipeline for measuring autonomous fleet stability.
System Designdata modelingpipelinestelemetryreal-time systems - System DesignHardModel answerDesign a Link-Shortening Service with Click Tracking
Design a distributed URL shortener handling billions of daily redirects with sub-50ms latency and decoupled, accurate click counting.
System Designdistributed-systemscachingstream-processing - Data Structure DesignHardModel answerMutable Integer Set with Freeze-Frame Iterators
Design an integer set supporting O(1) add/remove/contains plus snapshot iterators that capture insertion-order state at creation time without copying.
Data Structure Designsnapshotsiteratorsappend-only logversioning - Data Structure DesignMediumModel answerBuild a Path-Addressed Tree Store and a Bounded Ring Buffer
Design an in-memory hierarchical path store with strict parent-existence errors, plus a fixed-capacity FIFO queue where every operation is constant time.
Data Structure Designtriehash-mapcircular-bufferapi-design - Arrays & HashingMediumModel answerSimulating Motion Under Time-Varying Visibility Constraints
Determine how many entities moving rightward on a line reach a target position when their movement is blocked by a direction-switching observer.
Arrays & Hashingsimulationbinary-searchprefix-sum - Trees & GraphsMediumModel answerHeight-Balanced Nodes in Heap-Array Trees
Traverse a binary tree stored in heap-index layout to find every node whose subtree is height-balanced, returning each with its tree level.
Trees & Graphsbinary-treepost-orderheap-layoutbottom-up - Machine LearningEasyModel answerML Fundamentals: Bayes, Neural Nets, KNN, and Transformers
Work through four sets of ML fundamentals: a Bayes' rule posterior with a rare event, neural network arithmetic, KNN concept checks, and Transformer mechanics.
Machine Learningbayes-theoremneural-networksknntransformers - Greedy & IntervalsMediumModel answerMinimum Shift Count for Concurrent Task Scheduling
Given tasks with time windows and resource demands, find the fewest parallel workers needed so no worker exceeds capacity K at any moment.
Greedy & Intervalsgreedyintervalsheapbin-packing - System DesignMediumModel answerBuilding a Resilient HTTP Client with Retries and Rate Limiting
Design and implement a production-grade HTTP client that handles network failures, respects rate limits, and ensures safe retries.
System Designapi-designerror-handlingdistributed-systems - Machine LearningMediumModel answerDesigning a Churn Risk System: Classification vs. Survival
Design an end-to-end churn prediction system for a subscription business, choosing between windowed binary classifiers and time-to-event models, avoiding leakage, and turning scores into daily actions.
Machine Learningchurn-predictionsurvival-analysisclass-imbalancedata-leakage - Data Structure DesignMediumModel answerIn-Memory Grid with Formula Evaluation and Cycle Guards
Build a spreadsheet class in three stages: plain integer cells, formula parsing with dependency-order evaluation, then cycle detection and targeted recomputation.
Data Structure Designgraphsdependency-trackingparsing - System DesignMediumModel answerDouble-Entry Ledger with Account Consolidation
Design an ACID, idempotent, sharded banking ledger that supports transfers, paginated history, and merging one account into another under concurrent traffic.
System Designsystem-designdistributed-systemstransactionsidempotency - Data Structure DesignHardModel answerPeak Concurrent Couriers Over a Rolling 24-Hour Window
Design a data structure that records courier delivery intervals and efficiently answers: what is the highest number of couriers simultaneously active at any instant in the last 24 hours?
Data Structure Designsegment-treeintervalssliding-windowonline-algorithms - SQL & DataMediumModel answerDaily Ledger Reconciliation with FX Rates and Late Postings
Build SQL reconciliation across two ledgers with as-of FX conversion, 48h late-arrival classification, an idempotent backfilling pipeline, and honest discrepancy reporting.
SQL & Datasqldata-engineeringwindow-functionsetl - Machine LearningHardModel answerEnd-to-End Personalized Ranking System: From Logs to Live Serving
Design a full recommendation pipeline covering data ingestion, feature engineering, model training and refresh, multi-stage serving architecture, and production reliability.
Machine Learningrecommendation systemsfeature storestwo-tower modelA/B testing - System DesignMediumModel answerReal-Time Ranking System for Competitive Programming Platform
Design a leaderboard that tracks millions of users' scores and serves rankings with sub-100ms latency at 50K writes/sec.
System Designleaderboardredisshardinghigh-throughput - BehavioralMediumModel answerBehavioral Interview: Ownership, Conflict, and Trade-offs
Demonstrate ownership, collaboration, risk awareness, and learning through structured responses to common behavioral questions in a technical setting.
Behavioralbehavioralleadershipcommunication - BehavioralMediumModel answerWorkplace Ethics: Selecting Appropriate Professional Responses
Evaluate professional scenarios and identify the most appropriate and least appropriate courses of action based on ethical principles and workplace conduct.
Behavioralethicsprofessionalismjudgmentsituational-awareness - System DesignHardModel answerTelemetry Pipeline Design for High-Frequency Robotics Fleet Data
Design an end-to-end pipeline to ingest, validate, store, and query multi-modal sensor streams from a large fleet of autonomous robots at 20 GB/s aggregate throughput.
System Designstreamingtime-seriesdata-pipelinestorage-tiering - Machine LearningHardModel answerEmbedding Similarity: Top-K Retrieval and Evaluation
Implement cosine-similarity ranking over a set of candidate embeddings, handle edge cases explicitly, and reason through how you would evaluate whether the results are actually useful.
Machine Learningembeddingssimilarityevaluationpython - Machine LearningHardModel answerBuild a GLM from Scratch: Family, Link, and Optimizer
Design and implement a generalized linear model end-to-end, covering family and link selection, loss derivation, numerical stability, and prediction semantics.
Machine Learninggeneralized-linear-modelsmaximum-likelihoodnumerical-stability