practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6132 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.
- 6132
- Problems
- 2274
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 3061–3090 of 6132 results
- Math & Bit ManipulationMediumAuto-gradedMatrix Product, Fast Power and Fibonacci Toolkit
Combine matrix multiplication, square-and-multiply exponentiation and 2x2 matrix-power Fibonacci, with optional modular arithmetic, in one function.
Math & Bit Manipulationmatrix-multiplicationfast-exponentiationfibonaccimodular-arithmetic - Statistics & ExperimentsMediumModel answerFour Growth Analytics Cases: Stories, Boosts, Creators, Logins
Work through four product-growth scenarios using one framework: goal, metrics, funnel, data, hypotheses, one prioritized bet, and a validation plan.
Statistics & Experimentsproduct-analyticsexperimentationfunnel-analysismetrics - System DesignMediumModel answerTracing a Link Tap Through a Large Social Platform
Explain what happens from the moment a user taps a link in a social app feed until the destination renders, covering client, network, backend, security, privacy and monitoring.
System Designsystem-designnetworkingweb-performancesecurity - System DesignHardModel answerOrg Chart Service: Hierarchy Storage and Safe Manager Moves
Design a service for a large company's reporting structure that serves chain and subtree lookups quickly and keeps reporting lines acyclic under concurrent reorganizations.
System Designsystem-designhierarchyclosure-tableconcurrency - StringsMediumModel answerBootstrapping a Reproducible Python Environment with Bash
Write and explain a Bash script that creates or reuses a Python virtual environment and installs dependencies, covering strict mode, idempotency, activation pitfalls, and resulting files.
Stringsbashshell-scriptingpython-venvautomation - Data Structure DesignMediumAuto-gradedMost Likely Follower Lookup via Operation Log
Simulate a bigram next-word model from an operation log, returning the most frequent follower with lexicographic tie-breaking and an empty string when none exists.
Data Structure Designhash-mapdesigncountingsimulation - Arrays & HashingMediumAuto-gradedColumn-wise Gap Filling with Mean, Median or Mode
Fill None cells in a table column by column with the mean, median or smallest-most-frequent value of the observed entries, without mutating the input.
Arrays & Hashingarrayssimulationstatisticsdata-cleaning - Data Structure DesignMediumModel answerCard Prefix Registry with Per-Field Trust Resolution
Design an in-memory registry mapping digit prefixes to brand and card type, resolving each field by longest prefix, then trust, then recency, with fast lookups.
Data Structure Designhash-maplongest-prefix-matchtriedata-structure-design - StringsMediumAuto-gradedLongest Repeat-Free Concatenation, Lexicographically Smallest
Pick words and order them to form the longest string with no repeated character, breaking ties by smallest lexicographic order; tests subset backtracking with disjoint-set pruning.
Stringsbacktrackingsubsetsstringsbitmask - Trees & GraphsMediumAuto-gradedUncover Cells on a Minefield Grid with Flood Expansion
Apply a Minesweeper-style tap to a grid, expanding through zero-mine regions with breadth-first search and labeling cells with adjacent mine counts.
Trees & Graphsbfsgridmatrixsimulation - Statistics & ExperimentsMediumModel answerFirst-Pass Review of an Unknown Dataset: Quality and Charts
Describe how you would inspect a dataset you have never seen, judge how trustworthy it is, and pick charts that help business stakeholders make a decision.
Statistics & Experimentsedadata-qualityvisualizationmissing-data - Data Structure DesignMediumAuto-gradedRestaurant Queue Tracker with Fast Rank Lookup
Replay a list of queue operations on a first-come waitlist, supporting add, remove-by-id, rank lookup and front peek, with rank queries faster than a linear scan.
Data Structure Designdesignorder-statistictreaphash-map - Trees & GraphsMediumAuto-gradedGrid Distance to the Closest Marked Cell
Compute, for every cell of a grid, the fewest orthogonal steps to the closest marked cell, using a single multi-source breadth-first search; -1 everywhere when no cell is marked.
Trees & Graphsbfsmulti-source-bfsgridshortest-path - Statistics & ExperimentsMediumModel answerSubscription Unit Economics, Contract Terms and Breakeven Volume
Model per-customer contribution for a subscription with free months and one-time costs, then compute breakeven volume under a contract with early exits and rank the sensitivities.
Statistics & Experimentsunit-economicsbreakevensensitivity-analysisexpected-value - Statistics & ExperimentsMediumModel answerRandom vs Quota-Based Ad Placement in a 100-Post Feed
Compare independent 4% ad placement with one-ad-per-25-post-block placement: ad count, tail risk, back-to-back ads, the product trade-off, and an A/B test plan.
Statistics & Experimentsprobabilitybinomial-distributionab-testingexperiment-design - Statistics & ExperimentsHardModel answerMeasuring Community Health and Testing Nested Replies
Design a health measurement framework for online communities of very different sizes, compare them fairly, and plan an experiment for a nested-reply comment feature.
Statistics & Experimentsmetricsab-testingcluster-randomizationexperiment-design - Statistics & ExperimentsHardModel answerEvaluating a Same-Day Delivery Checkout Experiment on Net Contribution
Design the analysis of a two-arm checkout experiment: pick valid tests per metric, model cost and take-rate effects on contribution, find segments, and set constrained rollout rules.
Statistics & Experimentsab-testingratio-metricsdelta-methodheterogeneous-treatment-effects - Math & Bit ManipulationHardAuto-gradedOrdered IPv4 Access List: Verdict for an Address or Entire Subnet
Evaluate an ordered first-match IPv4 access list for a single address or a whole CIDR block, which needs prefix arithmetic and interval reasoning rather than enumerating addresses.
Math & Bit Manipulationcidrbit-manipulationstacksorting - Trees & GraphsMediumAuto-gradedChained Exchange Rates: Resolve Conversion Queries
Build a bidirectional weighted graph from exchange rates and answer conversion queries with a deterministic BFS that multiplies rates along the first-found path, or -1.0 if none exists.
Trees & Graphsgraphbfsweighted-graphhash-map - Math & Bit ManipulationEasyAuto-gradedExpected Draws Until a Second Distinct Token Shows Up
Compute, as a floating-point number, the expected number of draws from a fixed three-outcome distribution until two different outcomes have appeared, using conditioning and geometric waiting times.
Math & Bit Manipulationprobabilityexpected-valuegeometric-distributionmath - System DesignHardModel answerFundraising Payments Backend: No Lost or Double Gifts
Design a charity fundraising service that takes one-time and recurring gifts through a third-party payment processor, with exact amounts, no duplicate charges, and survival of traffic surges.
System Designsystem-designpaymentsidempotencyledger - Machine LearningMediumModel answerForecasting Hourly Dock Demand for a Bike-Share Station
Design an ML pipeline that forecasts 24 hours of bike demand per station, covering target framing, leakage-safe features, validation, and model choice.
Machine Learningtime-seriesforecastingfeature-engineeringdata-leakage - SQL & DataEasyAuto-gradedCreator Reach Score and Monthly New-Follower Trends
Join and aggregate social-graph records to compute per-user reach scores and per-month follower statistics, including previous-month lookups, growth rates and running totals.
SQL & Dataaggregationjoinswindow-functionshash-map - Arrays & HashingHardAuto-gradedComplete a Partially Filled Number Grid with Row, Column, Box Rules
Fill in the blanks of a 9x9 digit grid so every row, column and 3x3 block holds each digit 1-9 once, testing backtracking with constraint pruning.
Arrays & Hashingbacktrackingconstraint-satisfactionbitmaskrecursion - Statistics & ExperimentsMediumModel answerAudit a Flaky Free-Trial Rollout Function for Experiment Safety
Find at least eight correctness and reliability bugs in a Python function that randomizes users into a free-trial test, then redesign it so the experiment and billing data stay trustworthy.
Statistics & Experimentsexperimentationidempotencydata-integrityreliability - Arrays & HashingMediumAuto-gradedRainwater Held Between Terrain Columns
Compute total rainwater stored between unit-width columns of given heights, aiming for a single pass with constant extra memory using the two-pointer technique.
Arrays & Hashingtwo-pointersarraysgreedy - Machine LearningMediumModel answerNear-Duplicate Image Matching Pipeline for Rights Enforcement
Design a pipeline that checks every uploaded image against a huge catalog of protected works, tolerating edits and partial reuse, at high throughput, under a tight latency limit, with a review workflow.
Machine Learningml-system-designcomputer-visionann-searchembeddings - Dynamic ProgrammingMediumAuto-gradedCheapest Right-Down Route Through a Cost Grid
Compute the minimum total cost of a route from the top-left to the bottom-right of a grid when only right and down moves are allowed, using dynamic programming.
Dynamic Programmingdynamic-programminggridmatrixoptimization - BehavioralMediumModel answerTwo Career Stories: A Costly Defect and Winning Over Skeptics
Prepare two structured behavioral answers: one about a high-impact production defect you diagnosed and fixed, and one about changing minds when you lacked formal authority.
Behavioralbehavioraldebuggingincident-responseinfluence - Heaps, Sorting & SearchMediumAuto-gradedRank Anti-Diagonal Strings of a Letter Grid
Build a string for each anti-diagonal of a letter grid, read bottom-left to top-right, and return diagonal indices ordered by string, with ties broken by index.
Heaps, Sorting & Searchmatrixsortingstringstie-breaking