practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6060 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.
- 6060
- Problems
- 2245
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1561–1590 of 6060 results
- Data Structure DesignMediumAuto-gradedFailure Streaks and Fix Times from a Live Test Log
Process a stream of pass/fail log operations, answering shortest-fix-time and longest-concurrent-failure-window queries with an incremental, level-based data structure.
Data Structure Designdesignstreamingintervalshash-map - System DesignMediumModel answerResilient Streaming Chat Client for Android with MVVM and UDF
Design a layered Android client for an LLM chat app covering streaming, cancellation, retries, offline history, immutable UI state, and lifecycle and process-death handling.
System Designandroidmvvmkotlin-coroutinesstateflow - System DesignHardModel answerMulti-Tenant LLM Fine-Tuning Service on AWS: Platform Design
Design a managed AWS platform where customers fine-tune open-weight LLMs on their own data, with isolation, budgets, resumable distributed training, evaluation and endpoint deployment.
System Designml-system-designllm-fine-tuningawsdistributed-training - Heaps, Sorting & SearchMediumAuto-gradedK-th Smallest Entry in a Row and Column Sorted Grid
Find the k-th smallest value in a two-dimensional grid where every row and column is sorted in ascending order.
Heaps, Sorting & Searchbinary-searchmatrixheaps-sorting - SQL & DataMediumModel answerSeller Enforcement Timeline and Repeat-Buyer Product Filters
Three SQL/pandas tasks: find sellers penalized after a reinstatement, get the first event after the latest reinstatement, and find customers who bought A in 2010 and B in 2018.
SQL & Datasqlwindow-functionsconditional-aggregationpandas - Greedy & IntervalsMediumAuto-gradedLargest Number With Even Counts of Both Digits
Delete characters from a string of 1s and 2s so both digit counts are even and the number is largest, testing greedy deletion with parity reasoning.
Greedy & Intervalsgreedystringstacksubsequence - Data Structure DesignMediumAuto-gradedReplay Operations on a Fixed-Size Ring Buffer Queue
Simulate a fixed-capacity circular FIFO queue from an operation log, handling wraparound, full and empty states, and logical index lookups in constant time per operation.
Data Structure Designcircular-queuering-buffersimulationdesign - Data Structure DesignMediumModel answerSlot Availability Queries on a Sparse Number Line
Handle an online stream of point-blocking and window-clearance queries on a huge integer line, and return a bit string with one result per query.
Data Structure Designbinary-searchsorted-structuresfenwick-treecoordinate-compression - Arrays & HashingEasyAuto-gradedCross-Tabulate Records by Composite Row and Column Keys
Group records by composite row and column keys, sum a value field per pair, and return the axes in first-seen order with a dense grid that has zeros for missing pairs.
Arrays & Hashinghash-mapgroupingaggregationtuples - BehavioralMediumModel answerGuarding Quality on AI-Assisted Code Under a PM's Deadline
Behavioral question on keeping security and correctness standards intact while AI tools speed up a deadline-driven financial feature, and on working with a PM without becoming a blocker.
Behavioralbehavioralleadershipstakeholder-managementai-assisted-coding - System DesignHardModel answerDesign a Single-Node Durable Key-Value Engine
Design an embeddable single-node key-value storage engine providing durability, high write throughput, crash recovery, and single-key transactions.
System Designstorage-enginelsm-treewalconcurrency - BehavioralMediumModel answerDemonstrate Engineering Impact and Architecture Trade-offs
Walk through a major technical initiative you led, detailing the problem, evaluated options, trade-offs, stakeholder alignment, and quantified outcomes.
Behavioralbehavioralsystem-designleadershipimpact - Statistics & ExperimentsHardModel answerDesigning ETA Evaluation Experiments in Networked Two-Sided Markets
Design and evaluate an experimental framework for an ETA model change in a dynamic dispatch marketplace, accounting for interference, power, and partial compliance.
Statistics & Experimentsexperiment-designcausal-inferencenetwork-effectsab-testing - Stacks & QueuesMediumModel answerBuild a Stack-Based Mini Language Interpreter in Python
Write an interpreter that parses a line-based program of LOAD, STORE and integer arithmetic instructions, runs it on an operand stack, and returns the final variable memory.
Stacks & Queuesinterpreterstackparsingerror-handling - Statistics & ExperimentsMediumModel answerDiagnose Drop in Completed Marketplace Orders
A framework to investigate, diagnose, and validate the root causes behind a sustained multi-week decline in completed orders on a two-sided marketplace platform.
Statistics & Experimentsmarketplace-analyticsroot-cause-analysisexperimentationfunnel-decomposition - Data Structure DesignHardAuto-gradedSimulate LFU Cache Sequence
Process a series of LFU cache queries with LRU tie-breaking and track the output of each operation.
Data Structure Designhash-tablelinked-listdesignlfu-cache - System DesignMediumModel answerDesign a Real-Time Sliding Leaderboard for Popular Merchants
Architect a high-throughput stream processing pipeline to track top-10 global and per-city merchants over a 60-minute trailing window with low latency.
System Designsystem-designstream-processingleaderboardsliding-window - Arrays & HashingMediumAuto-gradedGravity Grid: Pushing Tokens Up from Below and Spotting Matching Lines
Simulate a grid where tokens are pushed in from the bottom of a column, and after each push report success and whether any full column or full row is single-typed.
Arrays & Hashingsimulationmatrixstate-trackinggrid - System DesignMediumModel answerSecure Multi-Tenant Pipeline for Big Ledger File Processing
Design a service where enterprise tenants upload files up to 5 GB, which are processed asynchronously into versioned reconciliation reports, with resumable uploads, idempotent jobs, and strict isolation.
System Designsystem-designmultipart-uploadidempotencyasync-processing - Heaps, Sorting & SearchMediumModel answerTwo-Sided Order Book Matching with Unit Orders
Simulate a simple exchange: buys and sells of size one arrive in sequence, cross against the best resting price, and you return the total value of all executed trades.
Heaps, Sorting & Searchheappriority-queuesimulationorder-book - System DesignMediumModel answerBuild a Grounded LLM Item Recommender Endpoint
Design a natural-language item recommendation endpoint backed by an LLM: request flow, prompt and output schema, retrieval, hallucination and injection controls, evaluation, and monitoring.
System Designllmragprompt-engineeringhallucination - System DesignHardModel answerPrefix-Sharing KV Cache for a Greedy Decoding Server
Add exact, prefix and shared-prefix KV reuse with a token-budgeted LRU to a toy LLM server, cutting prefill cost while every greedy output stays unchanged.
System Designkv-cachellm-inferencetrielru-cache - Statistics & ExperimentsEasyModel answerDiagnosing a Sudden Drop in a Marketplace KPI
Lay out a structured plan for finding out why a core marketplace metric fell over the past one to two weeks, including a day-one versus week-one timeline.
Statistics & Experimentsroot-cause-analysismetricsfunnel-analysissegmentation - Dynamic ProgrammingMediumAuto-gradedCheapest Daily Ticket Plan Without Back-to-Back Repeats
Choose one of three item types each day with no type repeated on adjacent days, minimizing total cost and returning the unique optimal sequence of choices.
Dynamic Programmingdynamic-programmingpath-reconstructionpaint-house - Math & Bit ManipulationMediumAuto-gradedOverflow-Safe Probability Normalization of Raw Scores
Convert a list of real scores into a probability distribution via exponentiation and normalization, without overflow or division-by-zero for extreme input values.
Math & Bit Manipulationnumerical-stabilitymathfloating-pointarrays - BehavioralMediumModel answerFrom Customer Complaints to Shipped Improvements: Weighing Value and Cost
Describe a time you turned customer feedback into a change you led end to end, and explain how you weigh benefit against cost and resolve conflicts with technical limits.
Behavioralbehavioralproduct-thinkingroistakeholder-management - System DesignMediumModel answerSizing a Fleet to Serve a Large Model to 100M Daily Users
Plan an inference platform for 100M daily users: estimate traffic, memory, compute and bandwidth, pick hardware, control tail latency, and handle GPU out-of-memory failures.
System Designml-inferencecapacity-planninggpu-servingtail-latency - System DesignMediumModel answerBuild a Multi-Tenant Time-Series Telemetry Backend
Design a telemetry backend that ingests about 1M samples per second from many services, answers aggregate queries fast, runs alerts, and keeps data cheaply for months with tenant isolation.
System Designtime-seriesingestiondownsamplingcardinality - Trees & GraphsMediumAuto-gradedSmallest Valid Task Schedule with Prerequisites
Produce the lexicographically smallest topological ordering of a directed graph, or report that no ordering exists because of a cycle.
Trees & Graphstopological-sortheapgraphcycle-detection - Math & Bit ManipulationEasyAuto-gradedRecover Total Weight From All Pairwise Crate Readings
Tests the double-counting insight that each item appears in a fixed number of pair sums, so the total equals the sum of the readings divided by a constant.
Math & Bit Manipulationmathcountingpairwise-sumsarithmetic