practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6099 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.
- 6099
- Problems
- 2258
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 2281–2310 of 6099 results
- Statistics & ExperimentsMediumModel answerEvaluating Initial vs Subsequent Video Length Differences
Construct a paired statistical workflow, cohort design, time-trend adjustment, and SQL data extraction to analyze if a user's inaugural upload is shorter than later posts.
Statistics & Experimentshypothesis testingpaired t-testwilcoxonconfounding - Arrays & HashingMediumAuto-gradedCan Your Unfinished Poker Hand Overtake a Showdown Hand?
Decide whether a 3 or 4 card poker hand can be filled from the unseen deck into a five-card hand that strictly outranks a revealed five-card hand.
Arrays & Hashingsimulationbrute-forcecombinationspoker - Statistics & ExperimentsHardModel answerEvaluating Causal Impact: PSM, DiD, Synthetic Controls, and DML
Master core causal inference tools (PSM, DiD, SCM, and DML), their identification assumptions, failure modes, and modern estimation techniques for observational data.
Statistics & Experimentscausal inferencedifference-in-differencespropensity score matchingdouble machine learning - Heaps, Sorting & SearchMediumAuto-gradedBidirectional Bubble Sort with Early Exit and Shrinking Window
Implement a two-direction adjacent-swap sort that returns a new sorted list, using window shrinking and early termination, while reasoning about its cost.
Heaps, Sorting & Searchsortingtwo-pointersbubble-sortin-place - Data Structure DesignMediumAuto-gradedReplay Path Insertions and Filename Lookups on a Component Trie
Simulate an in-memory path trie driven by a list of add and search operations, with iterative traversal, path normalization, and exact rules for what counts as a file.
Data Structure Designtrietree-traversaliterative-dfssimulation - Math & Bit ManipulationEasyAuto-gradedPosterior for the Favorite After Your Entry Loses
Apply Bayes' rule to find the chance a randomly chosen contestant was the strongest one, given that it did not win a three-way contest.
Math & Bit Manipulationprobabilitybayes-ruleconditional-probabilitymath - BehavioralMediumModel answerRevisiting a Wrong Diagnosis: Debugging a Hard Production Fault
Describe a production problem where your first diagnosis proved wrong, how evidence redirected you, the true root cause, and the safeguards you added to stop it returning.
Behavioralbehavioraldebuggingroot-cause-analysisstar-method - Data Structure DesignMediumAuto-gradedReplay a Bounded Recency Store from an Operation Log
Simulate a fixed-size key-value store that discards the least recently touched entry when full, by replaying a log of operations and returning each result.
Data Structure Designhash-maplinked-listsimulationcache - SQL & DataEasyAuto-gradedCalculate Call Answer Metrics for Active Users
Process call records and lifecycle logs to compute the success rate of answered calls for eligible users within a specific time frame.
SQL & Datasqlarrayshash-table - Data Structure DesignMediumModel answerDynamic Anagram Collection Tracker with Group Size Optimization
Design a class to insert, remove, and query the largest group of anagram words in real time, exploring performance trade-offs for read and write loads.
Data Structure Designdesign-dsstringsarrays - System DesignMediumModel answerLazy Pipelines, Memoization, Indexes, and Safe Payment Retries
A multi-part fundamentals question covering lazy vs eager iteration, a multi-argument cache decorator, B+ tree index trade-offs, process vs thread, and testing idempotent retries.
System Designpythongeneratorsmemoizationb-tree-index - Machine LearningMediumModel answerLLM Inference Memory and Phase Splitting: KV Cache and PD Disaggregation
Explain why transformer decoders cache keys and values, size that cache for a given model, and reason about running prefill and decode on separate GPU pools.
Machine Learningllm-servingkv-cacheinferencegpu-memory - Data Structure DesignMediumAuto-gradedQuota-Limited Storage Simulator with Staging and Snapshots
Simulate a per-user file store with staged uploads, quota checks, ranked prefix queries, and atomic snapshot restores under two conflict policies.
Data Structure Designdesignhash-mapsimulationsorting - SQL & DataMediumModel answerRow Removal, Saved Queries and Pairing Every Row in SQL
Explain how DELETE and TRUNCATE differ, when a view beats a stored table, and how a CROSS JOIN builds full combination grids, using a small employee and department schema.
SQL & Datasqldelete-vs-truncateviewscross-join - SQL & DataMediumModel answerWeekly Top Dialers and Share of French Video Participants
Write two SQL queries on a call-log table: rank the ten users who placed the most calls in the past week, and compute the share of yesterday's French users who joined a video call.
SQL & Datasqlaggregationdate-filteringconditional-aggregation - Arrays & HashingMediumModel answerModern Java 8 Toolkit: Lambdas, Streams, Optional, java.time
Explain the major Java 8 language and library additions, when each one fits, and the common pitfalls, using short code examples.
Arrays & Hashingjavajava-8lambdasstreams - Machine LearningMediumModel answerDesigning a Repeat-and-Aggregate Pipeline for Noisy LLM Scores
Design a latency-bounded pipeline that averages repeated LLM sentiment scores, measures run-to-run stability, and computes how many samples a 95% error target needs.
Machine Learningllm-inferenceconfidence-intervalssample-sizevariance-reduction - System DesignMediumModel answerDesign Deterministic Parallel Floating-Point Reduction in CUDA
Architect a GPU reduction pipeline that guarantees bitwise-reproducible floating-point outputs by eliminating non-deterministic thread block contention.
System Designcudaparallel-programmingfloating-pointgpu - System DesignMediumModel answerDesign a Scalable ML Model Weight Distribution System
Design a robust, distributed infrastructure to distribute, version, and activate multi-gigabyte machine learning model weights across thousands of regional GPU inference instances safely.
System Designmachine-learningsystem-designdistributed-systemscaching - Trees & GraphsMediumAuto-gradedGrid Land Mass Valuation
Find all orthogonal connected components of non-zero cells in a 2D grid and calculate the total sum of cell values for each component.
Trees & Graphstrees-graphsbreadth-first-searchdepth-first-searchmatrix - Statistics & ExperimentsMediumModel answerSizing and Reading a Discount-Offer Experiment
Plan a randomized test for a customer discount offer: justify it, pick metrics, size the sample for a small revenue MDE, and explain a positive but non-significant lift.
Statistics & Experimentsab-testingsample-sizepower-analysismde - SQL & DataMediumAuto-gradedSegment Survey Ratings by User Tenure and Region
Filter invalid responses, categorize users by signup tenure, and aggregate satisfaction metrics by region and cohort.
SQL & Datadata manipulationaggregationgroupingfiltering - Arrays & HashingEasyAuto-gradedSimulate Slice Appending in Go
Simulate how slicing and slice appending mutate backing arrays and slice headers in Go.
Arrays & Hashingarrayssimulation - System DesignMediumModel answerBuild a Seller Photo Ingestion and Delivery Service
Design a pipeline that accepts large seller photos by direct upload, processes and moderates them asynchronously, and serves only approved variants worldwide with safe concurrent edits.
System Designsystem-designasync-processingobject-storageidempotency - Data Structure DesignMediumAuto-gradedSliding-Window Leaderboard Replay Simulator
Simulate a class that logs timestamped events and reports the K most frequent IDs in a closed time window, with out-of-order events and queries.
Data Structure Designdesignbinary-searchhash-mapsorting - Trees & GraphsMediumAuto-gradedSum of Keys Within a Value Window in a Serialized BST
Rebuild a BST from a level-order list and sum the node values inside an inclusive range, using ordering to skip subtrees that cannot contain qualifying values.
Trees & Graphsbinary-search-treedfstree-constructionpruning - Statistics & ExperimentsMediumModel answerDiagnosing Marketplace Bottlenecks: Supply vs. Demand Constraints
A framework for identifying whether flat or declining category GMV in a marketplace is driven by supply shortages or reduced buyer demand, using metrics and experimentation.
Statistics & ExperimentsA/B TestingMarketplace AnalyticsMetric DesignCausal Inference - Statistics & ExperimentsEasyModel answerCore Assumptions of OLS Linear Regression, Diagnostics, and Remediation
Explain the underlying assumptions of ordinary least squares (OLS), their impact on bias versus inference, diagnostic techniques, and practical remedies.
Statistics & Experimentslinear regressionstatisticshypothesis testingmachine learning - Data Structure DesignMediumAuto-gradedVersioned Network Edge Tracker
Process a stream of edge insertions, snapshot triggers, and historical adjacency queries for a dynamic graph.
Data Structure Designdesign-dsarraystrees-graphs - Heaps, Sorting & SearchMediumAuto-gradedLowest-Numbered Free Room Booking for Time Slots
Simulate a deterministic room-allocation process with heaps: sort by start, free finished rooms, pick the smallest free ID, and report assignments in input order.
Heaps, Sorting & Searchheapsimulationsortingintervals