practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6069 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.
- 6069
- Problems
- 2250
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1711–1740 of 6069 results
- Data Structure DesignMediumAuto-gradedDesign an In-Memory Reservation Manager
Implement an in-memory venue reservation system supporting quick seat allocation, cancellation tracking, and capacity queries.
Data Structure Designhash-tabledesignstacksdata-structures - Math & Bit ManipulationEasyAuto-gradedFive Quick Quantitative Puzzles with Exact String Answers
Solve five short arithmetic and algebra puzzles (units, compounding percentages, linear system, rate, series scaling) and return them in an exact string format.
Math & Bit Manipulationmatharithmeticalgebraunit-conversion - System DesignMediumModel answerDesigning a Polite, Scalable Web Crawler at Production Scale
Design a distributed crawler that fetches pages quickly across many hosts while never overloading any single upstream, with safe retries, deduplication, fairness and monitoring.
System Designsystem-designrate-limitingweb-crawlerdistributed-systems - System DesignMediumModel answerScaling a Solved Algorithm When the Data Outgrows Memory
Explain how to adapt a working in-memory solution when the input becomes far too large, moving from constraints to streaming, external sorting, approximation or distribution.
System Designscalabilitystreamingexternal-sortfollow-up-questions - StringsMediumAuto-gradedLongest Window Where Every Letter Meets a Minimum Count
Find the longest contiguous substring in which every letter that appears occurs at least k times, using a sliding window or divide and conquer.
Stringssliding-windowstringshash-mapdivide-and-conquer - Statistics & ExperimentsEasyModel answerFixed vs Variable Costs in a Streaming Subscription Business
Classify costs as fixed or variable for a subscription video service, resolve a mixed item such as cloud spend, and explain the effect on margin, break-even and CAC payback.
Statistics & Experimentsunit-economicscontribution-marginbreak-evencac-payback - Machine LearningHardModel answerRanking Currently-Live Channels Under a 100 ms Budget
Design an end-to-end ML system that ranks live channels for viewers, covering labels, features, models, bias correction, evaluation, and low-latency serving as streams start and end.
Machine Learningrecommender-systemstwo-towercounterfactual-learningexploration - System DesignMediumModel answerResumable Large-File Transfer Service with Verified Chunks
Design a storage-backed service that moves very large files in resumable pieces, checks integrity end to end, serves byte ranges, and only exposes files once fully committed.
System Designsystem-designresumable-uploadobject-storageidempotency - Data Structure DesignMediumModel answerConst Pointer Variants and Choosing Between Tree and Hash Maps in C++
Explain how const placement changes pointer and pointee mutability in C++, then compare std::map and std::unordered_map on structure, complexity, ordering, key needs and use cases.
Data Structure Designcppconst-correctnesspointersstd-map - BehavioralMediumModel answerNavigating a High-Stakes Disagreement With a Peer or Lead
Tell a story about a meaningful professional disagreement, showing how you surfaced assumptions, reached a decision respectfully, owned the outcome, and followed through.
Behavioralbehavioralconflict-resolutioncommunicationownership - Math & Bit ManipulationMediumAuto-gradedApproximate a Square Root to the Nearest Tenth
Compute the square root of a non-negative number without a built-in root function and return it rounded to one decimal place, using bisection or Newton's method.
Math & Bit Manipulationbinary-searchnumerical-methodsfloating-pointmath - Data Structure DesignHardModel answerBuild a Jungle Board Game Engine with Class Hierarchies
Design the classes for a two-player Jungle (Dou Shou Qi) engine: eight animals, a 9x7 board with water, traps and dens, capture and jump rules, a small API, and tests.
Data Structure Designobject-oriented-designgame-enginepolymorphismclass-design - Data Structure DesignMediumModel answerBuild a Keyed Task Dispatcher with Global Concurrency Cap
Design a component that runs tasks in strict order per key, lets different keys run in parallel up to a global limit, and stays correct under concurrent submits and task failures.
Data Structure Designconcurrencythread-safetyexecutorqueues - Math & Bit ManipulationEasyAuto-gradedPossible Subspace Intersection Dimensions
Computes all valid integer dimensions for the intersection of two vector subspaces given ambient and subspace dimensions.
Math & Bit Manipulationmathlinear-algebra - Arrays & HashingMediumAuto-gradedClosest Bakery Stall for Every Shopper on a Street
For each shopper on a line, find the closest stall index, with ties going to the lower index, testing two-sided linear scans for nearest-neighbor lookups.
Arrays & Hashingarraystwo-pointersprefix-suffixnearest-neighbor - Machine LearningEasyModel answerSelecting Classification Thresholds and Evaluating ML Pipelines
Learn how to select decision thresholds, tune trade-offs under constraints like asymmetric costs and capacity, and design robust evaluation metrics for classification systems.
Machine Learningclassificationthreshold-tuningmodel-evaluationprecision-recall - Math & Bit ManipulationMediumAuto-gradedFirewall Rule Resolver with Longest-Prefix Priority
Resolve an IPv4 address against CIDR allow/deny rules using longest-prefix precedence, later-rule tie-breaking, and a default of deny, via bitmask matching.
Math & Bit Manipulationbit-manipulationcidripv4simulation - System DesignMediumModel answerDesign a Real-Time Chess Platform with Integrated Chat
Architect a scalable, low-latency distributed system for real-time multiplayer chess, clock management, and channel-based chat supporting peak loads.
System Designsystem-designwebsocketsreal-timedistributed-systems - Dynamic ProgrammingMediumModel answer0/1 to Bounded Knapsack Optimization and Traceback
Solve the 0/1 knapsack problem with optimal item selection, optimize its space complexity, and extend the solution to bounded knapsacks efficiently.
Dynamic Programmingdynamic-programmingarrayssliding-windowknapsack - System DesignMediumModel answerOperating Production Infrastructure and Managing Outages
A guide on managing production servers, diagnosing performance degradation, conducting structured incident response, and using Linux inspection utilities.
System Designsreobservabilitylinuxincident-response - Dynamic ProgrammingHardAuto-gradedVisit Every Node Exactly Once: Path Existence in a Small Graph
Decide whether an undirected graph of at most 20 vertices has a simple path through every vertex, which is best solved with a bitmask DP over visited subsets.
Dynamic Programmingbitmask-dpgraphhamiltonian-pathsubsets - Math & Bit ManipulationMediumAuto-gradedEnumerate Every Factor of a Large Integer in Sorted Order
Produce all positive factors of an integer up to 10^12 in increasing order, handling perfect squares and large primes, and consider approaches faster than a square-root scan.
Math & Bit Manipulationnumber-theorydivisorsfactorizationsquare-root - Statistics & ExperimentsEasyModel answerProduct Success Measurement and Causal Evaluation Framework
Learn how to establish a quantitative framework to evaluate product success, balancing primary metrics, funnels, guardrails, and causal inference methods.
Statistics & ExperimentsA/B TestingExperimentationProduct AnalyticsCausal Inference - BehavioralMediumModel answerEvaluating Rejection Cooldowns and Structuring Short Onsite Loops
Learn how to interpret interview cooldown periods, elicit actionable recruiter feedback, and execute high-signal answers during tight behavioral and low-level design onsite loops.
BehavioralInterview StrategyLow Level DesignBehavioralCareer Strategy - Heaps, Sorting & SearchMediumAuto-gradedLowest-Sum Pairs Across Two Sorted Lists
Select the k cheapest cross-array pairs from two sorted lists using a heap-based k-way merge, with a deterministic ordering for ties.
Heaps, Sorting & Searchheapk-way mergesorted arrayspriority queue - Trees & GraphsHardModel answerEvaluate Chained Sum Definitions with Error Detection
Compute the integer value of every variable defined as a sum of literals and other variables, raising distinct errors for duplicate, undefined, or circular definitions.
Trees & Graphstopological-sortgraphkahn-algorithmcycle-detection - BehavioralHardModel answerDescribe Past Engineering Roles and Career Progression
Articulate your current and former engineering responsibilities, ownership scope, and technical evolution across roles during an initial screen.
Behavioralbehavioralcareer-progressionrecruiter-screeninterview-preparation - Machine LearningHardModel answerDesigning Alignment & Safeguards Against AI Sycophancy and Over-Reliance
Analyze sycophancy and emotional over-dependence in conversational LLMs, detailing root causes, evaluation metrics, algorithmic mitigations, and agency-preserving product controls.
Machine Learningmachine-learningai safetyrlhfllm alignment - Math & Bit ManipulationMediumModel answerSpot Hidden Differences Between Two Array Routines
Decide whether two array-processing routines behave identically under 32-bit integer rules, find a smallest counterexample if not, and design tests that expose subtle divergences.
Math & Bit Manipulationprogram-equivalenceinteger-overflowproperty-based-testingdifferential-testing - Statistics & ExperimentsMediumModel answerBuilding a Cost-Aware Objective for a One-Period Stat-Arb Portfolio
Augment a mean-variance stat-arb objective with realistic trading and holding costs, make units consistent, avoid double counting, calibrate from data, and check convexity.
Statistics & Experimentsportfolio-optimizationtransaction-costsmarket-impactconvex-optimization