practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6117 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.
- 6117
- Problems
- 2267
- Auto-graded
- 15
- Topics
- 277
- Added today
Showing 3421–3450 of 6117 results
- Arrays & HashingMediumAuto-gradedTrim a Record List to a Token Budget with a Sliding Window
Tests the sliding-window technique: conditionally compact a list of records to the longest contiguous run whose token sum fits a given budget.
Arrays & Hashingsliding-windowarraystwo-pointers - System DesignHardModel answerDesign a Distributed Usage Enforcement System
Design a quota enforcement service that handles millions of checks per second across many tenants, covering APIs, consistency trade-offs, hot-key handling, and billing accuracy.
System Designrate-limitingdistributed-systemsconsistencysharding - Machine LearningMediumModel answerML Infrastructure for Real-Time Engagement Prediction
Build an end-to-end platform for predicting user engagement likelihood, covering feature pipelines, online/offline stores, training workflows, and high-throughput inference.
Machine Learningml-systemsfeature-engineeringinference-architectureml-ops - Statistics & ExperimentsMediumModel answerCarousel Above the Feed: Metrics, Instrumentation, and Test Design
Design the metric hierarchy, logging, and experiment for a new top-of-feed carousel, then explain how to diagnose an overall CTR decline.
Statistics & Experimentsab-testingmetric-designinstrumentationproduct-analytics - Stacks & QueuesMediumModel answerCompute Per-Function Runtimes from a Profiler Event Log
Parse a time-ordered sequence of START/END events, compute inclusive and exclusive runtimes per function, and identify the most expensive function by self-time.
Stacks & Queuesstacksimulationprofilingcall-stack - System DesignMediumModel answerStreaming Home Feed: Visible-Grid Deduplication
Design the algorithm and surrounding system that ensures every show tile visible on a streaming home page appears at most once, across all rows and columns.
System Designdeduplicationpage-assemblygreedysystem-design - Trees & GraphsMediumModel answerCurrency Conversion Rates via Graph Traversal
Build a weighted graph from currency pairs and answer conversion queries, then extend to directional rates and arbitrage detection.
Trees & Graphsgraph-traversalshortest-pathbellman-fordfloating-point - BehavioralMediumModel answerShipping AI to Real Users: A Risk-First Decision Framework
Walk through a high-stakes decision to ship, modify, or hold an AI feature for end users, balancing error tolerance, segment risk, and measurable outcomes.
BehavioralAI/ML product decisionsrisk assessmentcustomer empathyhuman-in-the-loop - System DesignMediumModel answerDesigning a grounded document Q&A platform with citations and access control
Design an enterprise RAG system over millions of private documents: hybrid retrieval, reranking, cited generation, strict tenant/ACL isolation, and a 60-second freshness budget.
System Designragretrievalsystem-designaccess-control - Data Structure DesignHardModel answerThread-Safe Queue with Lease-Based Message Visibility
Design an in-memory queue that delivers messages with time-limited leases, validates acknowledgments against current lease tokens, and rejects duplicate entries.
Data Structure Designconcurrencyqueuestate-machineidempotency - Stacks & QueuesHardAuto-gradedReconstruct Function Lifetimes from Periodic Stack Snapshots
Tests ability to diff consecutive call-stack snapshots using longest-common-prefix analysis and stack unwinding to produce ordered START/END lifecycle events.
Stacks & Queuesstacksimulationtwo-pointers - Arrays & HashingMediumModel answerTest Plan for Straight-Line vs Path Word Search
Build a TDD plan, concrete cases, property invariants and stress tests for two grid word-search functions that must disagree on key inputs.
Arrays & Hashingtestingtddgridsbacktracking - Data Structure DesignMediumModel answerClassic Data-Structure Drills: Cache, Trie, Heaps, Graphs
Work through fifteen core algorithm patterns—LRU cache, trie, two-pointers, sliding window, topological sort, and more—naming invariants before coding.
Data Structure Designhash-tablestwo-pointerssliding-windowgraphs - BehavioralMediumModel answerTrimming a Feature to Ship the Core Problem First
Explain a real time you narrowed scope so a minimal version reached customers sooner, and how you and product rank what ships first.
Behavioralscope-cuttingproduct-collaborationprioritizationmvp - StringsMediumAuto-gradedWords Buildable from Two Different Entries in a Set
Use a hash set to test every split point of each word, reporting words formable as two distinct list entries, sorted.
Stringshash-setstringssortingenumeration - Data Structure DesignHardAuto-gradedPolicy-Driven Spending Report Checker
Tests whether a candidate can implement a multi-scope rule evaluation pipeline that collects all violations across item-level, aggregate, and relational policy checks.
Data Structure Designobject-oriented designopen-closed principledata aggregation - System DesignHardModel answerCompiler Instruction Scheduling for a Multi-Issue VLIW Processor
Design an instruction scheduler for a 4-issue VLIW core with mixed-latency functional units, covering hazard detection, register pressure, loop pipelining, and latency sensitivity.
System Designcompiler-backendinstruction-schedulingvliwpipeline-hazards - Arrays & HashingMediumModel answerSplitting Strings and Batching Equal-Cost Item Pairs
Count splits where prefix and suffix share more than k letters, then find the target cost that yields the most single-or-pair packages.
Arrays & Hashingcountingfrequency-arrayshash-mapcombinatorics - System DesignMediumModel answerDesign a Checkout-to-PSP Payment Gateway
Design a fault-tolerant intermediary service that processes charge requests from sellers, coordinates with an external payment provider, and maintains a consistent transaction ledger.
System Designdistributed-systemsidempotencyfault-tolerancefinancial-systems - BehavioralMediumModel answerWalk Me Through a Hard Technical Trade-off You Owned
Pick a project you know inside-out and defend a technical decision by comparing alternatives, detailing your implementation, and showing how you validated the outcome.
Behavioraltechnical decision-makingtrade-offsownershipimplementation depth - Arrays & HashingMediumAuto-gradedTrack Items Surviving Sequential Shifts on a Grid
Determine which grid cells remain in bounds after a sequence of directional shifts, testing displacement tracking and boundary analysis.
Arrays & Hashingsimulation2d-arrayprefix-summath - BehavioralHardModel answerDescribe a High-Stakes Technical Challenge You Resolved
Walk through a difficult engineering problem you owned, explaining diagnosis, alternatives, trade-offs, execution, and measurable impact.
Behavioralbehavioralleadershipproblem-solving - Arrays & HashingMediumAuto-gradedMomentum-Weighted Portfolio: Daily Log Return Statistics
Tests simulation of a daily rebalancing strategy where portfolio weights are proportional to positive asset returns, requiring correct timeline logic and statistical output.
Arrays & Hashingsimulationfinancestatistics - Arrays & HashingMediumModel answerColumn-Normalize a Random Binary Matrix
Generate an n×n matrix of fair coin-flip entries and rescale each column so its values sum to 1, in O(n²) time.
Arrays & Hashingnumpymatrixnormalizationvectorization - Arrays & HashingMediumAuto-gradedOverlapping 2D Block Move with O(1) Extra Memory
Tests whether a candidate can copy a rectangular subregion of a 2D grid onto another position in the same grid, in place, without corrupting overlapping data.
Arrays & Hashingarraysin-placetwo-dimensional - SQL & DataMediumModel answerUser-Week Panel Construction and DiD Analysis in SQL
Build a clean user-week panel dataset for difference-in-differences analysis, handling treatment timing, household spillovers, and staggered adoption.
SQL & Datadifference-in-differencespanel-datacausal-inferencesql-aggregation - System DesignMediumModel answerDesign a Time-Tracking and Wage Calculation Backend
Build a backend that records employee time punches, computes hours worked per pay cycle, calculates wages, and handles burst traffic and external data feeds.
System Designbackendscalabilitydata-modelingapi-design - Data Structure DesignMediumModel answerBuilding an In-Memory Recipe Store with Search and Versioning
Design an in-memory recipe system with CRUD, ingredient lookup, per-user attribution with sorting, and immutable version history that survives deletes.
Data Structure Designobject-oriented-designin-memory-storeindexingaudit-history - Arrays & HashingMediumModel answerCircular Token Distribution on a Ring of Nodes
Distribute k tokens clockwise across n nodes in a ring starting at a given index, returning each node's final count without simulating one token at a time.
Arrays & Hashingarraysmathmodulo arithmetic - Data Structure DesignHardModel answerIn-Memory Ledger with Timed Transfers and Account Consolidation
Design an in-memory financial ledger supporting deposits, transfers, scheduled future payments, top-K spending rankings, and account merges with pending-payment reconciliation.
Data Structure Designheaphash-mapschedulingunion-find