practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6116 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.
- 6116
- Problems
- 2267
- Auto-graded
- 15
- Topics
- 277
- Added today
Showing 3451–3480 of 6116 results
- Data Structure DesignMediumModel answerDesign an In-Memory Ledger with Transfers and Activity Ranking
Build an in-memory account ledger in stages—create/deposit, transfer, top-N by activity—plus a command-string test harness with clear failure semantics.
Data Structure Designobject-oriented-designhash-mapheaptest-harness - Machine LearningHardModel answerSocial Media Sentiment as a Stock Return Signal: End-to-End ML Design
Design a machine learning pipeline that extracts predictive signals from a high-volume social media stream and combines them with market data to forecast near-term stock returns.
Machine Learningnlptime-seriesfeature-engineeringsignal-validation - BehavioralMediumModel answerGrowing Independence Through Adaptive Mentorship
Explain how you helped someone gain autonomy by identifying blockers, adjusting your support style, and transferring ownership of real responsibilities.
Behavioralmentorshipleadershipcommunication - Data Structure DesignMediumModel answerBuild a Flexible Validation Engine with Pluggable Rules
Design a payroll validator that lets you plug in new checks without changing the core engine, using abstraction and priority-based execution.
Data Structure Designobject-oriented-designdesign-patternsextensibility - System DesignHardModel answerResilient Dispatch and Trip Lifecycle at Global Scale
Design a real-time ride-hailing backend that ingests driver pings, matches riders without double-booking, and runs an idempotent, fault-tolerant trip state machine.
System Designsystem-designgeospatialdistributed-systemsstate-machine - Arrays & HashingMediumAuto-gradedShortest Window With Unique-Value Sum Meeting a Goal
Sliding-window task where the window score is the sum of its distinct values, not the plain sum of its elements.
Arrays & Hashingsliding-windowhash-maptwo-pointersarrays - BehavioralMediumModel answerDescribe a Production Incident You Led From Symptom to Fix
Walk through a real, difficult debugging investigation: how you diagnosed the failure, stopped the impact, and changed the system to prevent recurrence.
Behavioraldebuggingincident responseroot cause analysisobservability - Dynamic ProgrammingMediumAuto-gradedCount Paths of Fixed Length in a DAG
Tests dynamic programming on graphs, topological ordering, and systematic state-space enumeration with path-length constraints.
Dynamic Programminggraphstopological-sortdag2d-dp - Statistics & ExperimentsMediumModel answerDefining Usability Metrics for Consumer Apps and Dev Tools
Turn a vague "this improves usability" claim into concrete, measurable metrics for a streaming platform and a machine learning framework.
Statistics & Experimentsproduct analyticsexperimentationdeveloper toolsmetrics - Machine LearningHardModel answerSimulating Traffic Participants for Autonomous Vehicle Training
Design a system for modeling the behavior of surrounding vehicles, pedestrians, and cyclists in a closed-loop driving simulator used to train and evaluate an autonomous driving agent.
Machine Learningsimulationreinforcement-learningautonomous-drivingmulti-agent - BehavioralEasyModel answerWalk Me Through a Project You Recently Shipped
Structure a compelling two-minute project walkthrough that shows ownership, decision-making, and measurable impact without getting lost in technical detail.
BehavioralcommunicationownershipSTAR methodHR screen - Trees & GraphsHardAuto-gradedDiff Two Versions of a Configuration Tree
Tests recursive-free N-ary tree traversal and set-based diffing to count nodes added, removed, or modified between two tree snapshots.
Trees & Graphstreeshashingtraversal - Data Structure DesignMediumAuto-gradedMaintain Dynamic Multiset with Rank Queries
Tests the ability to build a structure that handles insertions and k-th largest queries efficiently using a Fenwick tree over the value domain.
Data Structure Designfenwick-treebinary-indexed-treerank-queriesmultiset - Data Structure DesignMediumAuto-gradedSimulate a Least Recently Used Cache with Fixed Capacity
Tests understanding of LRU eviction policy through hash map and doubly-linked list composition to achieve O(1) operations.
Data Structure Designhash-maplinked-listcachelru - Math & Bit ManipulationMediumAuto-gradedTank Filling: Can You Hit an Exact Volume?
Tests whether a candidate can apply GCD-based number theory and state-space reasoning to determine if a target volume is reachable with two containers.
Math & Bit Manipulationmathbfsnumber-theory - Statistics & ExperimentsMediumModel answerTesting a Loyalty Discount Increase in a Ride-Share Marketplace
Design an A/B test to evaluate whether doubling a loyalty discount grows net revenue in a two-sided marketplace, covering experimental design, metrics, power analysis, and decision-making.
Statistics & Experimentsexperiment-designa-b-testingmarketplacepricing - Dynamic ProgrammingMediumAuto-gradedBest Path Sum in Triangle with Required Cell Constraint
Computes the maximum path sum descending through a triangular grid, both unconstrained and when forced through a specific cell.
Dynamic Programmingdynamic-programmingpathsoptimization - Data Structure DesignMediumModel answerBits, Cache Eviction, and Vertex Degrees: Fundamentals Under Pressure
Explain two's-complement shifts, compare LRU vs LFU eviction with trade-offs, and derive in-degree query costs across graph representations.
Data Structure Designbit-manipulationcachinggraphscomplexity - System DesignHardModel answerDesign an Observability Metrics Pipeline at Scale
Design a distributed system that ingests millions of tagged metric data points per second, enforces cardinality safety, tiers storage by age, and serves dashboard queries under 500 ms.
System Designmetricstime-seriesdistributed-systemsobservability - System DesignHardModel answerDesign a pipeline to migrate data from a SQL database to a key-value store
Move rows from a relational database into a NoSQL key-value store with a consistent one-time snapshot followed by ongoing CDC replication from the write-ahead log.
System Designchange-data-capturedata-migrationdistributed-systemsidempotency - StringsMediumAuto-gradedFind All Pattern Positions in Text
Tests implementation of efficient string matching and understanding of linear-time pattern search algorithms.
Stringsstring-matchingkmppattern-search - Machine LearningHardModel answerPredicting Turbine Power Output from Snapshot Weather Data
Design a tabular regression pipeline that maps weather and turbine attributes at a single instant to power output, covering physics features, data cleaning, model choice, validation and calibrated uncertainty.
Machine Learningregressionfeature-engineeringgradient-boostingmodel-validation - System DesignHardModel answerDistributed Event Ledger, Pay Engine, Workflow Orchestration, and AI Query Assistant
Design four backend systems: a deduplicated event counter, an immutable driver-pay ledger, a fault-tolerant offboarding workflow, and a permission-gated LLM expense assistant.
System Designevent-drivenworkflow-orchestrationLLMledger - Trees & GraphsMediumAuto-gradedGrid Obstacle Distances and Palindrome Ancestor Paths
Tests two skills at once: directional obstacle scanning on a 2D grid, and bitmask-based palindrome counting over rooted-tree ancestor segments.
Trees & Graphsgridbit-manipulationdfs - Arrays & HashingEasyModel answerWeighted Random Item Picker from Scratch
Implement a function that draws one item from a list at random, where each item's selection probability is proportional to its given weight.
Arrays & Hashingprobabilityprefix-sumbinary-search - Machine LearningMediumModel answerRobustness Testing: Universal Adversarial Triggers on Small LLMs
Design a controlled offline evaluation framework to discover and measure universal adversarial triggers on a small language model like GPT-2, covering threat modeling, optimization concepts, metrics, and safety guardrails.
Machine Learningadversarial-robustnesslanguage-modelsred-teaming - Statistics & ExperimentsMediumModel answerStream Sampling with Fixed Memory
Maintain a uniformly random sample of k elements from an unbounded stream in one pass using O(k) space.
Statistics & Experimentsprobabilitystreaming-algorithmssampling - Arrays & HashingEasyAuto-gradedPaginated Sensor-Alert Filter with Validation
Tests ability to validate, filter, sort, and paginate structured records while handling malformed entries and boundary conditions correctly.
Arrays & Hashingarraysfilteringpagination - Arrays & HashingMediumAuto-gradedBayesian Guessing Game with Unknown Coin Bias
Compute expected optimal winnings when sequentially guessing coin flips with a uniform-prior unknown bias.
Arrays & Hashingprobabilitybayesianexpected-valuedynamic-programming - Data Structure DesignMediumModel answerBuild a Bank, Validate Passwords, and Evaluate Expressions
Design a mini banking system, write a password strength checker with generator, and parse arithmetic expressions with full operator precedence.
Data Structure Designhash-mapstackparsingsimulation