practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6021 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.
- 6021
- Problems
- 2229
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 5041–5070 of 6021 results
- BehavioralMediumModel answerThread-Safe Maps and Stream Collectors in Java
Compare Java's concurrent map implementations and write a Stream-based method to find the highest-value transaction per trader.
Behavioraljavaconcurrencystreamscollections - StringsMediumAuto-gradedTiered Identity Validation for Business Onboarding
Tests your ability to implement a sequential rule-engine with string normalization, token-set comparison, and strict short-circuit logic across three validation tiers.
Stringsstringshashingsimulation - BehavioralMediumModel answerPreparing for Automated Behavioral Screening
Structure clear, evidence-based responses to automated screening questions about experience, projects, technical decisions, and workplace collaboration.
Behavioralinterview-prepcommunicationstorytelling - Data Structure DesignHardModel answerAmusement Park Tap-to-Ride: Credits, Surcharges, and Refunds
Simulate a wristband payment system that drains expiring credits before a linked card, applies zone-based surcharges, and splits refunds back across both funding sources.
Data Structure Designsimulationpriority-queuestate-management - Machine LearningMediumModel answerOptimizing ML Models for Different Hardware Platforms
Describe key compiler optimizations for machine learning workloads and how hardware constraints shape which techniques to apply.
Machine Learningml-systemscompilersoptimizationhardware-acceleration - Math & Bit ManipulationEasyAuto-gradedCalculate Population Variance Using Welford's Method
Tests ability to implement numerically stable variance computation with single-pass streaming aggregation and handling of floating-point precision issues.
Math & Bit Manipulationmathstatisticsnumerical-stabilitystreaming - Math & Bit ManipulationHardAuto-gradedSplitting Tokens: Will a Bucket Ever Run Dry?
Tests whether a candidate can identify a modular-arithmetic invariant to avoid simulating an exponentially long process.
Math & Bit Manipulationmathbit-manipulationnumber-theory - Heaps, Sorting & SearchMediumAuto-gradedSlice a Sorted Event Stream by Timestamp Window
Tests binary search boundary reasoning on a sorted sequence with duplicate timestamps and inclusive range semantics.
Heaps, Sorting & Searchbinary-searcharrayssorting - Greedy & IntervalsMediumAuto-gradedPeak Concurrent Tasks: Minimum Workers Needed
Tests interval overlap detection using sweep-line or heap techniques to find the maximum number of simultaneously active tasks.
Greedy & Intervalsintervalssortingheapsweep-line - Machine LearningHardModel answerMatrix Cumulative Product with Autodifferentiation
Implement forward and backward passes for cumulative matrix multiplication with correct gradient propagation in an autodiff system.
Machine Learningautomatic-differentiationbackpropagationmatrix-operationscomplexity-analysis - Arrays & HashingMediumAuto-gradedShortest Subarray With All K Distinct Characters Present
Tests ability to use a sliding window with a hash-count map to find the minimum-length contiguous subarray that contains every distinct character appearing in a string at least a given number of times.
Arrays & Hashingarrayshash mapsliding window - Stacks & QueuesMediumAuto-gradedCompute an Arithmetic Expression Honoring Operator Precedence
Tests ability to parse and compute integer arithmetic respecting operator precedence without using eval or a full expression parser.
Stacks & Queuesparsingoperator-precedencestack - System DesignMediumModel answerDesign a Fleet-Wide Maintenance Orchestrator
Design a system to coordinate safe, rolling maintenance operations across thousands of machines while preserving availability and handling failures.
System Designdistributed-systemsorchestrationstate-managementfault-tolerance - System DesignHardModel answerBuild a Real-Time Query Suggestion Platform
Design a scalable service that returns ranked autocomplete suggestions as users type search queries, handling billions of requests per day with sub-100ms latency.
System Designautocompletelow-latencycachingranking - System DesignHardModel answerThread-Safe Config Registry with Stale-While-Revalidate
Design a ConfigRegistry class that serves configuration to thousands of concurrent threads with lazy loading, stale fallback on failure, and no thundering herd.
System Designconcurrencyreliabilitypythondistributed-systems - SQL & DataMediumAuto-gradedRegional Notification Performance Summary
Tests join, filter, and conditional aggregation logic to compute per-region metrics with threshold filtering and safe division.
SQL & Dataaggregationjoinsconditional-logicdata-analysis - StringsMediumAuto-gradedChunked Stream Parser and Debt Settlement
Tests buffered string parsing over an incremental data source combined with greedy net-balance clearing across a set of financial transfers.
Stringsstringsgreedy-intervalsdesign-ds - Stacks & QueuesMediumAuto-gradedEvaluate Nested Arithmetic Brackets with Sign Propagation
Tests expression evaluation using a monotonic/simulation stack to handle deeply nested signed bracket expressions with +/- operators and integer literals.
Stacks & Queuesstacksexpression evaluationparsingsimulation - Arrays & HashingHardAuto-gradedComputing Equilibrium Bids in Single-Item Auctions
Tests understanding of dominant strategy equilibria in second-price auctions and Bayesian Nash equilibria in first-price auctions with uniform value distributions.
Arrays & Hashinggame-theoryauction-theoryexpected-valuebayesian-equilibrium - Data Structure DesignMediumAuto-gradedVersioned Social Graph: Follow, Snapshot, and Recommend
Tests data-structure design for a directed follow graph with copy-on-snapshot history and friend-of-friend recommendations ranked by mutual count.
Data Structure Designhash-mapsimulationdesign - Arrays & HashingHardAuto-gradedCollect All Valid Triples in a Four-Attribute Card Game
Tests recognition of a combinatorial validity rule across four ternary attributes and the insight that any two cards uniquely determine the third, reducing O(n³) brute force to O(n²).
Arrays & Hashinghashingcombinatoricsmath - Arrays & HashingMediumAuto-gradedCompute Speeding Penalties from Trajectory Data
Measures violations of a velocity threshold by calculating duration and magnitude of excess speed from sampled position sequences.
Arrays & Hashingarrayssimulationnumerical-methods - BehavioralMediumModel answerNavigating a Technical Disagreement on a Shared Project
Walk through a real disagreement with a teammate, how you handled it, and what the outcome meant for the work and the relationship.
Behavioralconflict resolutionteamworkcommunication - Data Structure DesignMediumModel answerBuild a Fox-and-Geese Turn-Based Grid Game Engine
Model the board state, movement rules, and win conditions for an asymmetric two-player grid game where geese try to reach the far side while foxes hunt them.
Data Structure Designobject-oriented designgame enginesimulationstate machine - Heaps, Sorting & SearchMediumAuto-gradedK Nearest Value Pairs in a Sorted Sequence
Tests whether a candidate can efficiently extract the k pairs with smallest gap from a sorted array using a heap-based k-way merge instead of brute force enumeration.
Heaps, Sorting & Searchheapsortingtwo-pointersarrays - Data Structure DesignHardModel answerTiered Cache Manager with Expiry and Weighted Retrieval
Implement a multi-level cache that evicts expired entries, checks tier utilization, and retrieves the highest-weight item from any eligible tier.
Data Structure Designheaplazy-deletionmulti-levelexpiration - System DesignMediumModel answerThread-Safe Memoization: Fixing a Shared Cache for Concurrent Callers
A dict-backed memoization wrapper is called from many threads simultaneously — identify the race conditions and redesign it to be safe without killing throughput.
System Designconcurrencythreadingpythoncaching - SQL & DataMediumModel answerSQL Window Functions: Streaks, Daily Metrics, and Inactivity Gaps
Use window functions to detect consecutive-day activity streaks, compute rolling DAU and revenue metrics, and identify post-order inactivity gaps across three related tables.
SQL & Datawindow-functionsgap-and-islandrolling-aggregatesdate-arithmetic - Statistics & ExperimentsMediumModel answerShould a Restaurant Chain Launch a Plant-Based Patty?
Use unit economics, break-even analysis, and cannibalization math to decide whether a new plant-based menu item is worth launching.
Statistics & Experimentsunit economicsbreak-evencontribution marginproduct launch - Statistics & ExperimentsMediumModel answerResampling Estimators: Confidence Intervals and Variance on a DataFrame
Implement bootstrap percentile confidence intervals and jackknife leave-one-out variance estimation for arbitrary scalar statistics on a pandas DataFrame.
Statistics & Experimentsresamplingbootstrapjackknifepandas