practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6059 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.
- 6059
- Problems
- 2244
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1561–1590 of 3815 results
- Statistics & ExperimentsHardModel answerOptimal Interval Quoting Strategy in a Multi-Round Estimation Game
Analyze and optimize an interval-quoting strategy under a nonstandard payoff rule over 5 rounds to achieve a target total score of 2.0.
Statistics & Experimentsstatisticsprobabilitydecision-theoryoptimization - System DesignHardModel answerLive Move of a 2TB SQL Server Database to PostgreSQL
Plan a no-downtime move of a busy 2TB SQL Server database to PostgreSQL, covering sync, type mapping, verification, cutover and rollback, with a read-only vendor client you cannot change.
System Designdatabase-migrationcdczero-downtimepostgresql - System DesignMediumModel answerDesigning a Board Game Engine as a Production Library or Service API
Transform a prototype game engine script into a production-grade software library and stateful HTTP microservice with clean architecture and robust edge-case handling.
System Designsoftware-engineeringapi-designrefactoringarchitecture - BehavioralEasyModel answerTell Me About a Time You Failed and What You Learned
Learn how to structure a compelling behavioral response about a past failure, demonstrating clear accountability, systemic resolution, and durable growth.
Behavioralbehavioralownershipleadershipinterview-prep - Data Structure DesignMediumModel answerIn-Memory Calendar Service and Interval Queries
Design and implement an in-memory calendar event service with full CRUD operations, validation rules, conflict detection, and unit testing strategy.
Data Structure Designdesignintervalscrudvalidation - Data Structure DesignMediumModel answerDesign a Weighted Sampling Generator with Dynamic Updates
Implement a class for weighted sampling that supports O(1) sampling for static inputs and logarithmic updates for dynamic environments.
Data Structure Designdesign-dsheaps-sortingmath-bits - SQL & DataMediumModel answerSingle Funnel Score for Ads from Impression and Click Logs
Design one metric that blends click-through and purchase quality, then write SQL that attributes clicks to impressions and reports it per ad for the past week.
SQL & Datasqljoinswindow-functionsmetrics - BehavioralMediumModel answerBehavioral Story: A Metric You Built That Redirected a Decision
Prepare a behavioral story about designing a new metric, proving it was sound, and showing how it changed a decision, while separating observed results from causal impact.
Behavioralbehavioralmetricsimpactstakeholder-management - System DesignMediumModel answerDesign a Fair Multi-Tenant Image Enhancement Compute Service
Design a distributed compute platform for image processing using GPU workers, implementing dynamic weighted fair-queueing by compute time and resilient lease-based task execution.
System Designsystem-designdistributed-systemsschedulingfairness-queueing - Machine LearningHardModel answerBuilding and Analyzing Scaled Dot-Product Attention
Implement a production-grade multi-head attention module in PyTorch, handle numerical precision and causal masking, and analyze performance trade-offs for large sequences.
Machine Learningdeep learningattentionpytorchtransformers - Statistics & ExperimentsEasyModel answerReducing Cold Deliveries: Experimentation & Metric Strategy
Establish metrics, select randomization strategy, account for non-compliance, and diagnose anomalies when assessing insulated bags for delivery drivers.
Statistics & ExperimentsA/B TestingExperimentationMarketplaceCausal Inference - Machine LearningHardModel answerValidate, Diagnose, and Monitor E-Commerce Search Ranking Models
A guide to designing temporal offline evaluation, position-bias correction, diagnostic leakage checks, multi-stage deployment, and online-offline metric alignment for search ranking models.
Machine Learninglearning to rankmodel validationposition biasmonitoring - System DesignMediumModel answerEpisode Release Pipeline and Follower Feed for an Audio Show Platform
Design how creators upload and release audio episodes, and how each subscriber sees new releases from followed shows, including shows with millions of subscribers.
System Designsystem-designfeed-generationfan-outtransactional-outbox - BehavioralEasyModel answerTell the Story of Your Best Project and a Workplace Disagreement
Prepare two structured stories for a behavioral round: a project you are proud of and a disagreement with a colleague, covering your role, actions, results and lessons.
BehavioralbehavioralSTARconflict-resolutionownership - Statistics & ExperimentsMediumModel answerSkewed Engagement Counts and the Sampling Distribution of Group Means
Reason about a right-skewed per-user daily comment distribution, then describe how mean, median and 95th percentile behave for averages of many random user groups.
Statistics & Experimentscentral-limit-theoremskewnesssampling-distributionpercentiles - System DesignHardModel answerBuild a Scalable Real-Time Messaging Backend for Group Conversations
Design a messaging backend for 1:1 and group conversations with near-real-time delivery, exact unread counts, durable history, offline sync, and clear ordering guarantees at large scale.
System Designsystem-designchatwebsocketfan-out - System DesignMediumModel answerDesign a Scalable Food Delivery Review Platform
Design a backend architecture to capture, aggregate, and display diner reviews and media ratings at high volume with low read latencies.
System Designsystem-designdatabase-designcachingpagination - Statistics & ExperimentsMediumModel answerDesigning Subscription Price Increase Tests
A guide to evaluating SaaS price increases: break-even unit economics, pre-experiment elasticity modeling, A/B test setup, revenue guardrails, and handling existing subscriber renewals.
Statistics & ExperimentsA/B TestingExperimentationPricing StrategyLTV - BehavioralEasyModel answerPresenting Your Career Narrative and Handling High-Velocity Deadlines
Craft a compelling summary connecting your career achievements to the role, then demonstrate disciplined engineering prioritization during tight timeline constraints.
Behavioralbehavioralcareer-narrativeexecutionstar-framework - BehavioralMediumModel answerNavigating OKRs, Unexpected Project Failure, and Tactical Reflection
Demonstrate strategic leadership by detailing how you set outcome-driven OKRs, identified and took ownership of a major project setback, and implemented systemic changes.
Behavioralbehavioralleadershipproject-managementokrs - BehavioralMediumModel answerFive Behavioral Stories: Data, Constraints, Customers, Speed, Ownership
Prepare five real stories covering deep data analysis, multi-constraint problems, a tough customer, a fast decision with little information, and ownership beyond your assigned scope.
Behavioralbehavioralstar-methodleadership-principlesownership - Data Structure DesignMediumModel answerCross-Venue Quote Book and Arbitrage Scanner
Build an in-memory engine that keeps the latest valid top-of-book quote per venue, expires old ones, and reports the most profitable buy-low/sell-high pair across venues.
Data Structure Designclass-designhash-mapmarket-dataedge-cases - Statistics & ExperimentsMediumModel answerRoot-Causing Lukewarm Meal Complaints and Testing a Fix
Investigate a surge in "food arrived cold" complaints on a delivery marketplace, define diagnostic and monitoring metrics, and design a randomized experiment for a heat-retention fix.
Statistics & Experimentsab-testingmetricsroot-cause-analysisswitchback - Machine LearningMediumModel answerBuild a Reply-Probability Scorer: Feature Pipelines and Inference
Design an ML system that estimates whether a user will comment on a post in a community forum, emphasizing feature pipelines, training-serving consistency, and low-latency model deployment.
Machine Learningml-system-designfeature-storemodel-servingranking - Machine LearningHardModel answerDesign a Machine Learning System for Social Feed Ad Ranking
Design an end-to-end ML architecture to optimize feed ad click-through rates, detailing metric trade-offs, multi-stage serving pipelines, graph/two-tower embeddings, and bias mitigation.
Machine Learningsystem designrecommendation systemsclick-through rateembeddings - System DesignHardModel answerDesign a Real-Time Top-K Heavy Hitters System
Design an architecture to identify top-k elements in high-throughput streams over rolling windows, covering data structures, exact vs. approximate models, and sharding.
System Designsystem-designstreamingdata-structurescaching - Machine LearningHardModel answerDesigning and Evaluating Production RAG Systems and Core LLM Concepts
Architect end-to-end RAG pipelines, optimize knowledge graph maintenance costs, evaluate LLM reliability, and master attention and fine-tuning mechanics.
Machine LearningRAGLLM EvaluationTransformersLoRA - SQL & DataMediumModel answerPooled Reply Rates per Category with Wilson Intervals in pandas
Clean a job-postings table, compute invitation-weighted reply rates per category with 95% Wilson intervals, rank the top 5, and check the weighting identity numerically.
SQL & Datapandasgroupbywilson-intervaldata-cleaning - Arrays & HashingMediumModel answerSimulate Grid Rover Fleet Collision Logic
Simulate the concurrent step-by-step navigation of multiple automated grid rovers, handling collisions, static obstacles, and grid bounds.
Arrays & Hashingarrayssimulationmatrixhash-table - Data Structure DesignMediumModel answerThread-Safe Ledger Accounts with Transfer and Absorb Operations
Design a concurrency-safe Account class supporting deposits, withdrawals, atomic transfers, and absorbing another account, while preventing overdrafts, deadlocks, and operations on closed accounts.
Data Structure Designoopconcurrencylockingdeadlock