practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6125 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.
- 6125
- Problems
- 2271
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 2671–2700 of 6125 results
- Arrays & HashingMediumAuto-gradedAudit Purchase Events Against a Payment Ledger
Aggregate daily purchase metrics from event logs and reconcile two event snapshots against a ledger to judge whether a tracking fix worked, using hash-map grouping.
Arrays & Hashinghashingaggregationreconciliationdictionaries - System DesignHardModel answerDesign a Real-Time Top-K Heavy Hitters System
Design an architecture to identify top-k elements in high-throughput streams over rolling windows, covering data structures, exact vs. approximate models, and sharding.
System Designsystem-designstreamingdata-structurescaching - Machine LearningHardModel answerDesigning and Evaluating Production RAG Systems and Core LLM Concepts
Architect end-to-end RAG pipelines, optimize knowledge graph maintenance costs, evaluate LLM reliability, and master attention and fine-tuning mechanics.
Machine LearningRAGLLM EvaluationTransformersLoRA - SQL & DataMediumModel answerPooled Reply Rates per Category with Wilson Intervals in pandas
Clean a job-postings table, compute invitation-weighted reply rates per category with 95% Wilson intervals, rank the top 5, and check the weighting identity numerically.
SQL & Datapandasgroupbywilson-intervaldata-cleaning - Data Structure DesignMediumAuto-gradedPer-Key Cooldown Filter for a Timestamped Event Feed
Walk a time-ordered event feed and decide which events pass a 10-second per-key cooldown, where only accepted events restart the cooldown.
Data Structure Designhash-mapsimulationrate-limitingstreams - Arrays & HashingMediumModel answerSimulate Grid Rover Fleet Collision Logic
Simulate the concurrent step-by-step navigation of multiple automated grid rovers, handling collisions, static obstacles, and grid bounds.
Arrays & Hashingarrayssimulationmatrixhash-table - Arrays & HashingEasyAuto-gradedMost Frequently Booked Vehicle
Count how many booking records each vehicle has and return the ID with the highest count, breaking ties by the smallest ID.
Arrays & Hashinghash-mapcountingtie-breaking - Arrays & HashingMediumAuto-gradedInner Product of Two Index-Value Lists
Compute the inner product of two sparse vectors given as sorted index-value pairs by intersecting their indices with a linear merge, without building dense arrays.
Arrays & Hashingtwo-pointerssparse-vectorsorted-mergesimulation - Data Structure DesignMediumModel answerThread-Safe Ledger Accounts with Transfer and Absorb Operations
Design a concurrency-safe Account class supporting deposits, withdrawals, atomic transfers, and absorbing another account, while preventing overdrafts, deadlocks, and operations on closed accounts.
Data Structure Designoopconcurrencylockingdeadlock - System DesignMediumModel answerCustomer Playbook for Unreliable and Slow Data Pipelines
Outline how you would advise a customer whose cloud data platform produces untrustworthy data and runs slowly or expensively: scoping, metrics, diagnosis, fixes, and architecture concepts.
System Designdata-qualitypipeline-performancelakehousesolutions-architect - Math & Bit ManipulationEasyModel answerAxial Tilt and Doubling Money: Two Estimation Questions
Explain the physical cause of hot summers and cold winters, then compute the balance of a $1,000 deposit that earns 100% interest compounded yearly for 20 years.
Math & Bit Manipulationestimationcompound-interestexponential-growthmental-math - Data Structure DesignMediumModel answerObject-Oriented Design for a Multi-Floor Garage Allocator
Design classes and an allocation API for a multi-floor garage that assigns the closest suitable bay to each vehicle, stays correct under concurrent requests, and handles a full garage.
Data Structure Designobject-oriented-designconcurrencyheaplow-level-design - Greedy & IntervalsMediumAuto-gradedEarliest Shared Free Slot Across Several Schedules
Find the earliest meeting slot of a given length that fits inside everyone's availability window and avoids every busy block, by intersecting windows and merging busy intervals.
Greedy & Intervalsintervalssweep-linesortingscheduling - Greedy & IntervalsMediumAuto-gradedMerge Event Windows Within Each Locality
Join two record lists by id, group event time ranges by locality, merge overlapping or touching ranges, and return the merged windows in a specified sort order.
Greedy & Intervalsintervalsmerge-intervalshash-mapsorting - BehavioralMediumModel answerPresent a Past Project: Quick Pitch, Then Technical Deep Dive
Practice describing one significant project in a tight spoken pitch, then defend your decisions, metrics, and communication choices when an interviewer digs deeper.
Behavioralbehavioralproject-deep-diveownershipcommunication - Math & Bit ManipulationHardAuto-gradedStreaming Run/Bit-Pack Codec Session Simulator
Simulate a codec session that buffers int32 values, emits run-length and bit-packed blocks on flush, and decodes block lists back to integers.
Math & Bit Manipulationbit-manipulationcompressionsimulationtwos-complement - Data Structure DesignMediumAuto-gradedFunding Ledger with Rail-Specific Settlement and Window Caps
Simulate an ordered account ledger where each payment rail has its own settlement delay, cutoff-shifted window assignment, and per-window cap, and output the combined results.
Data Structure Designsimulationhash-mapheapdesign - Data Structure DesignMediumModel answerBuild a Three-Stage Signup Wizard with React Reducer State
Design a React wizard with profile, address and review stages, covering validation, guarded navigation, disabled controls, a submit spinner and server error display, plus scaling and performance trade-offs.
Data Structure DesignreactformsuseReducervalidation - Arrays & HashingMediumModel answerSimulate Cascade Board Game Outcome
Simulate a custom board game involving stack placing and directed toppling moves to determine the game outcome.
Arrays & Hashingarrayssimulationmatrix - SQL & DataMediumModel answerRevenue Rollups, a 2x2 Pivot and a VIP Flag in pandas
Join two small tables in pandas, then build channel revenue totals, a member-by-channel pivot, per-state order and buyer counts, and a rule-based high-value flag.
SQL & Datapandasmergegroupbypivot_table - Dynamic ProgrammingHardAuto-gradedMinimum Disorder When Interleaving Two Job Queues
Interleave two letter strings while keeping each one's order, minimizing out-of-order pairs; tests 2D prefix DP with O(1) transition costs from alphabet-count tables.
Dynamic Programmingdynamic-programmingstringsprefix-countsinterleaving - Arrays & HashingEasyAuto-gradedScore a Top-k Search Result Against Labeled Files
Clean a noisy ranked result list (missing, duplicated, unknown, or oversized) and compute precision and recall against ground-truth labels.
Arrays & Hashinghashingsetsmetricsinput-validation - Math & Bit ManipulationEasyAuto-gradedDetect a Rate Reversal Between Strata and Pooled Totals
Compare two groups' success rates per stratum and pooled, using exact integer cross-multiplication, to detect when a consistent stratum winner flips in the aggregate.
Math & Bit Manipulationsimulationfractionsaggregationsimpsons-paradox - StringsMediumAuto-gradedFewest Leading Digits Needed to Rearrange Into Each Word
For each query digit string, find the shortest prefix of a digit string containing enough of each digit to form it, using per-digit occurrence lists and a max over digits.
Stringsstringshashingcountingprecomputation - Trees & GraphsMediumAuto-gradedAudit a Workflow Run Against Dependencies and Precedence Rules
Check a run order against a task dependency graph, mandatory tasks and extra precedence pairs, while rejecting duplicates, unknown tasks and cyclic constraints.
Trees & Graphsgraphtopological-sortcycle-detectionhash-map - Arrays & HashingMediumAuto-gradedFirst Long Run of Daily Activity per User
Group activity logs by user, dedupe dates, find maximal consecutive-day runs of length 7 or more, and report each user's earliest such run.
Arrays & Hashinghashingdatesgaps-and-islandssorting - BehavioralMediumModel answerNavigating Critical Technical Trade-offs Under Schedule Constraints
A guide to framing high-stakes engineering decisions, analyzing risk, managing stakeholders, measuring outcomes, and demonstrating retrospective ownership.
Behavioralbehavioraldecision-makingtrade-offsleadership - Stacks & QueuesMediumAuto-gradedEager Deletion of Repeated Character Blocks
Scan a string and delete each block of k equal adjacent characters as soon as it forms, handling cascading merges with a run-length stack.
Stacks & Queuesstackstringrun-lengthsimulation - Machine LearningMediumModel answerFixing and Scaling a Misbehaving CIFAR-10 Training Job
Diagnose a CIFAR-10 PyTorch job that stalls, hits NaNs, or runs slowly, then scale it with FSDP, reason about sparse gradient communication, and decide when custom kernels pay off.
Machine Learningpytorchdebuggingfsdpdistributed-training - SQL & DataMediumModel answerCleaning Account Data in R and Selecting Top Half of Students in SQL
Clean a customer CSV with ordered null-handling rules and compute two averages in tidyverse R, then write one MySQL 8 query returning the top half of students by average grade.
SQL & Datasqlrtidyversewindow-functions