practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6077 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.
- 6077
- Problems
- 2253
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 1951–1980 of 3824 results
- 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 - 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 - 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 - 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 - 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 - 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 - 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 - BehavioralMediumModel answerTurning a Local Fix into a Shared Platform Other Teams Adopt
A behavioral prompt about spotting a problem that spans several teams, building a reusable fix, winning adoption, and planning long-term ownership.
Behavioralbehavioralleadershipcross-teamownership - System DesignMediumModel answerWhy a 307 Redirect Makes a Stream-Body POST Stall in Requests
Diagnose a Requests POST with a file-like body that stalls after a 307 redirect, fix the body-rewind logic, and write a deterministic regression test.
System Designpythonhttpdebuggingredirects - Machine LearningMediumModel answerDesigning a Grounded LLM Assistant for Seller Policy Questions
Decide whether an LLM fits a seller-compliance help desk, choose an architecture, define offline and online accuracy measures, and design a safe improvement loop.
Machine Learninggenerative-airagllm-evaluationhallucination - BehavioralMediumModel answerTelling the Story of Your Proudest Engineering Project
Present one significant project end to end: goal, your role, stack, obstacles, measurable results, and what you would do differently with hindsight.
Behavioralbehavioralproject-deep-divestar-methodownership - Data Structure DesignMediumModel answerFinish a REST Resource: Update and Delete Routes in FastAPI
Extend a small FastAPI service with replace and remove routes that follow existing conventions, handle idempotency and errors correctly, and ship with a full test suite.
Data Structure Designfastapirest-apipydantichttp-status-codes - BehavioralMediumModel answerPre-Launch Readiness Review for a New Consumer Credit Card
Explain how you would assess whether a bank is ready to bring a new credit card to market, covering customers, economics, risk, compliance, operations, and launch criteria.
Behavioralproduct-strategybusiness-judgmentcredit-cardsrisk-and-compliance - Trees & GraphsHardModel answerRewrite a Relational Plan: Sink Filters and Trim Columns
Transform a tree of Scan, Filter, Project and Join operators by moving filters toward the leaves and removing unused columns, while keeping query results unchanged.
Trees & Graphstree-rewritingquery-optimizationpredicate-pushdownprojection-pruning - BehavioralEasyModel answerThree Behavioral Prompts for a Data Scientist: Setbacks, Team Morale, Motivation
Craft structured spoken answers about a personal challenge, a team setback you helped resolve, and your reasons for wanting this role, tied to leadership principles and measurable outcomes.
BehavioralbehavioralSTAR methodleadership principlesdata scientist - Data Structure DesignMediumModel answerBuild a Dependency-Aware Cell Calculator with Cycle Checks
Design an in-memory grid of numeric and formula cells in Python, reject circular dependencies, allow shared references, and compare lazy evaluation against eager recomputation with caching.
Data Structure Designdesigngraphcycle-detectionmemoization - BehavioralMediumModel answerWalk Through a Distributed Data Platform You Built End to End
Present one real distributed pipeline you owned: architecture, tool trade-offs, scale and failure handling, and a production incident you diagnosed, all in about four minutes.
Behavioraldistributed-systemsbehavioralsparkelasticsearch