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 3241–3270 of 6125 results
- Greedy & IntervalsHardModel answerPayroll From an Event Log With Surge Windows
Turn a day's delivery events into total driver pay, then add doubled-rate surge windows by splitting intervals at boundaries, and decide how to handle messy or inconsistent logs.
Greedy & Intervalsintervalsevent-processinghashingsorting - System DesignMediumModel answerInside a Linux Command: Processes, Files, Containers vs VMs
Trace a Linux command from shell parsing to exit status, explain path lookup, permissions, file descriptors and /proc, then compare containers and VMs by isolation boundary.
System Designlinuxoperating-systemsprocessesfilesystems - Machine LearningHardModel answerBuilding a Click-Optimized Search Suggestion Engine
Design a production ML system that proposes search suggestions as users type, ranking them for clicks while controlling bias, safety, latency, and long-term search quality.
Machine Learningml-system-designsearch-suggestionsctr-predictionranking - Data Structure DesignMediumAuto-gradedPer-Tab Navigation Timeline Replay
Simulate independent per-tab navigation timelines with a cursor, supporting visit, back and forward, and replay a batch of operations to collect their results.
Data Structure Designdesignhash-mapsimulationcursor - Machine LearningMediumModel answerDesigning a Layered Memory System for a Long-Lived LLM Agent
Describe the layers of memory in a persistent LLM agent, what each holds, how it is written and read, and how the layers are managed, secured and evaluated across many sessions.
Machine Learningllm-agentsmemoryretrievalcontext-window - Greedy & IntervalsMediumAuto-gradedDaily Flat-Fee Cap on Overlapping Job Charges
Sum per-day min(active cost, flat fee) over huge day ranges using an event sweep, with the result taken modulo 1,000,000,007.
Greedy & Intervalsline-sweepintervalsdifference-arraymodular-arithmetic - System DesignMediumModel answerRank Synchronization in PyTorch Distributed: How barrier() Works
Explain what a collective barrier does in PyTorch distributed training, how it is implemented per backend, when to use it, and how misuse causes hangs or wasted throughput.
System Designpytorchdistributed-trainingsynchronizationnccl - Machine LearningMediumModel answerUnreliable Engagement Counter in a Filing-Completion Model
Diagnose a cumulative usage feature with many zeros and nulls, handle its absence at scoring time, and explain why it correlates negatively with completing a tax return.
Machine Learningfeature-engineeringmissing-datadata-leakagetraining-serving-skew - System DesignHardModel answerDesigning a Batched Stream Aggregator with Exactly-Once DB Writes
Design a Kafka consumer pipeline that batches trade events, preserves per-key order, survives crashes and slow databases, and never double-writes aggregates.
System Designkafkastream-processingexactly-oncebackpressure - Statistics & ExperimentsHardModel answerInvestigating Video Call Drops and Their Effect on Contract Renewals
Plan an analysis of why a video conferencing product drops calls for business customers, estimate the causal effect on contract renewals, and decide between patching and rebuilding.
Statistics & Experimentsroot-cause-analysiscausal-inferenceretentionchurn-modeling - Data Structure DesignMediumModel answerWeighted Random Picker with Live Weight Updates
Design a sampler that picks an index in proportion to its weight, supports weight changes, draws several distinct items, and can be seeded and tested statistically.
Data Structure Designweighted-samplingfenwick-treeprefix-sumsbinary-search - Trees & GraphsMediumModel answerThread-Pooled Link Crawler with Depth Limit and Dedup
Implement a thread-safe crawler that explores links from a seed page to a given depth, never fetches a URL twice, and caps the number of simultaneous fetches.
Trees & Graphsconcurrencybfsthread-poolgraph-traversal - Heaps, Sorting & SearchMediumAuto-gradedPick the Element at a Given Rank From the Top
Find the k-th largest value in an unsorted integer list, counting duplicates separately, without necessarily sorting the whole list.
Heaps, Sorting & Searchheapquickselectselectionarrays - Data Structure DesignHardAuto-gradedTrack Covered Spans Under Add, Erase and Check Commands
Maintain a set of half-open real intervals under add, remove and fully-covered queries, merging touching spans and splitting spans on removal.
Data Structure Designintervalsbinary-searchsimulationsorted-list - Trees & GraphsMediumAuto-gradedCombine Config Trees and Parse a Canonical Encoding
Merge two keyed n-ary trees by summing values, encode them canonically, and strictly parse an encoded string with validation.
Trees & Graphstreerecursionparsingserialization - Arrays & HashingEasyAuto-gradedTally Tokens and Report the Three Most Common
Count occurrences of each string in a list with a hash map, then rank by count with an alphabetical tie-break to extract the top three entries.
Arrays & Hashinghash-mapcountingsortingtie-breaking - Trees & GraphsMediumModel answerRound-Trip Text Encoding for Ordered Trees with Any Number of Children
Define a text format for ordered trees with arbitrary branching, then write an encoder and decoder that rebuild the exact same values, structure and child order in linear time.
Trees & Graphstreeserializationn-ary-treeiterative-dfs - Math & Bit ManipulationMediumAuto-gradedGambler's Ruin: Success Probability and Duration Score
Compute the chance a random walk hits a target before zero using a closed form, handling the fair case and overflow, and return a fixed duration formula.
Math & Bit Manipulationprobabilitymarkov-chainclosed-formnumerical-stability - BehavioralMediumModel answerFour-Part Behavioral Round: Motivation, Self-Assessment, Leadership, Conflict
Prepare spoken answers to four classic behavioral prompts: your background and motivation, strengths and weaknesses, people-leadership experience, and a disagreement with a manager.
Behavioralbehavioralself-awarenessleadershipconflict-resolution - BehavioralMediumModel answerFour Metric-Backed Leadership Stories in Compact STAR-L Form
Prepare four tight, number-driven stories for a data science screen covering deadlines, fast learning, acting on partial data, and owning an out-of-scope problem.
BehavioralbehavioralleadershipSTARownership - System DesignHardModel answerPartner Listing Onboarding Gateway: API and Pipeline Design
Design an HTTP gateway through which third-party partners submit property listings, which are checked by an internal validation team's service, with safe retries, async results and observability.
System Designrest-apiidempotencyasync-processingoutbox-pattern - Statistics & ExperimentsMediumModel answerBidding Against a Better-Informed Rival for a 200-Coin Prize
Two-bidder first-price sealed auction for a 200-coin payout: find the equilibrium bid with no information, then adjust when the rival has seen 10 of the flips.
Statistics & Experimentsprobabilityexpected-valuegame-theoryauctions - System DesignMediumModel answerMaking a Kafka-to-Postgres Payment Consumer Safe Under Retries
Fix lost security context in async tasks, duplicate ledger writes after Kafka redelivery, and unsafe shared metrics maps in a Java 17 / Spring Boot payment consumer.
System Designjavaspring-securitykafkaidempotency - Dynamic ProgrammingMediumAuto-gradedBest Haul from a Row of Stalls Without Adjacent Picks
Pick values from a row so that no two chosen positions are neighbors, maximizing the total, which tests recognizing and implementing a simple one-dimensional dynamic programming recurrence.
Dynamic Programmingdynamic-programmingarraysnon-adjacent-selection - Machine LearningHardModel answerArrival-Time Prediction for a Ride-Hailing Platform
Design a production ML system that predicts pickup and trip-duration estimates with calibrated uncertainty, covering features, models, serving, leakage control and A/B rollout.
Machine Learningeta-predictionuncertainty-quantificationfeature-storeconformal-prediction - System DesignEasyModel answerGPU Rendering, Pipeline Hazards and Workload Fit
Walk through how a GPU turns triangles into pixels, how pipelines resolve register read-after-write hazards, and which workloads GPUs handle well or badly.
System Designgpu-architecturegraphics-pipelinepipeline-hazardslatency-hiding - Data Structure DesignHardModel answerBuild an Exact Usage Ledger for Chunked LLM Responses
Design a billing ledger that merges streamed token deltas and one-shot totals, validates events strictly, and keeps all money as integer nano-USD to avoid floating-point drift.
Data Structure Designdesign-dshash-mapvalidationstate-machine - Trees & GraphsMediumAuto-gradedSmallest Job Schedule Under Dependency Rules
Produce the lexicographically smallest topological ordering of a dependency graph, or an empty list if the dependencies contain a cycle.
Trees & Graphstopological-sortgraphheapcycle-detection - System DesignMediumModel answerStreaming Replay of Recorded Vehicle Telemetry in a 3D Viewer
Design a browser-based 3D replay viewer that streams time-indexed vehicle logs from object storage, with prefetching, fast seeking, and aligned playback.
System Designstreamingcachingtime-seriesprefetching - System DesignMediumModel answerBuilding a Cloud-Hosted Disposable Browser for Untrusted Web Content
Architect a platform that renders risky web pages in throwaway cloud sandboxes and streams the result to employees, covering isolation, streaming, state, policy and scale for 50k sessions.
System Designsystem-designremote-browser-isolationwebrtcsandboxing