practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6125 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.
- 6125
- Problems
- 2271
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 2641–2670 of 6125 results
- 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 - Arrays & HashingMediumAuto-gradedPrice Card Payments with Tiered Rates and Running Merchant Totals
Parse comma-separated payment rows, build a per-row rate from several rules plus a per-merchant running total, and round fees exactly to whole cents.
Arrays & Hashinghash-mapparsingsimulationrounding - 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 - Math & Bit ManipulationMediumAuto-gradedDelta-Method Variance of a Ratio of Two Sample Means
Apply a first-order Taylor expansion to get the approximate variance of a ratio of two correlated sample means, including the covariance term.
Math & Bit Manipulationdelta-methodvariancecovarianceratio-metrics - 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 - Math & Bit ManipulationMediumAuto-gradedGap in Days Between Two Calendar Strings Without Date Libraries
Parse two ISO-style date strings and compute the absolute day gap using manual Gregorian leap-year logic, without any date or calendar library.
Math & Bit Manipulationdate-arithmeticleap-yearstring-parsingmath - Arrays & HashingMediumAuto-gradedFind Accounts With Five Distinct Contacts in a Week
Sliding-window distinct counting per group: find callers who reach at least five different receivers within any 7-day span of their call log.
Arrays & Hashingsliding-windowhash-mapgroupingtimestamps - 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 - Data Structure DesignMediumAuto-gradedWork Queue Tracker with Owners, Closing, and Late Lookups
Simulate a task tracker driven by a list of operations, handling creation, reassignment, completion, and multi-key sorted queries while returning one result per operation.
Data Structure Designdesignhash-mapsortingsimulation - 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 - Trees & GraphsMediumAuto-gradedColumn-by-Column Readout of a Level-Order Encoded Tree
Compute the column-wise readout of a binary tree given as a level-order array, ordering nodes by column, then row, then value.
Trees & Graphsbinary-treebfshash-mapsorting - 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 - Heaps, Sorting & SearchMediumAuto-gradedValley Finder: Binary Search on an Unsorted Zigzag Array
Find a valley index in an array of adjacent-distinct integers in logarithmic time, using a fixed halving rule that makes the returned index deterministic.
Heaps, Sorting & Searchbinary-searcharraysinvariantsiterative - 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 - Dynamic ProgrammingMediumAuto-gradedTallest Staircase Walk Across a Number Board
Find the longest chain of orthogonally adjacent cells with strictly increasing values in a 2D grid, testing DAG longest-path DP, memoization, and avoiding deep recursion.
Dynamic Programmingdynamic-programminggraphdfsmemoization - StringsMediumAuto-gradedLeft-to-Right Calculator Using Only Scalar State
Evaluate a no-parentheses arithmetic string with correct precedence and truncating division in one pass, using only a few scalar variables instead of a stack.
Stringsstring-parsingtwo-pointerssimulationconstant-space - 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