practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6046 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.
- 6046
- Problems
- 2239
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1321–1350 of 6046 results
- Math & Bit ManipulationMediumAuto-gradedWorking Days Between Two Dates with a Closure List
Count Monday-to-Friday days in an inclusive date range, skipping listed closure dates, using week arithmetic instead of day-by-day iteration.
Math & Bit Manipulationdatescalendararithmeticsets - Machine LearningMediumModel answerBuilding a Fast Key-Value Cache for LLM Token Generation
Explain and design a per-layer key/value cache for decoder-only LLM generation, covering batching, branching, long contexts, memory and kernel performance, precision, and common correctness bugs.
Machine Learningtransformerskv-cachellm-inferenceattention - Machine LearningMediumModel answerTeaching an LLM to Flag Questions Past Its Knowledge Horizon
Design a way for a language model to spot questions that need information newer than its training data and to tell the user clearly where its knowledge stops.
Machine Learningllmcalibrationabstentionfine-tuning - Heaps, Sorting & SearchEasyAuto-gradedMinimum Postponed Debits to Avoid Negative Balance
Find the minimum number of negative transactions to postpone so that the running account balance remains non-negative throughout processing.
Heaps, Sorting & Searchheaps-sortinggreedy-intervalsarrays - Arrays & HashingMediumModel answerFix a Failing Budget-Check Module and Add Regression Tests
Debug a small spending-limit module with failing tests: find root causes, fix them, add minimal regression tests, and explain your debugging process and tools.
Arrays & Hashingdebuggingunit-testingroot-cause-analysisfloating-point - Machine LearningMediumModel answerChoosing Metrics, Penalties, and Ablations for an NLP Model
Compare classifier evaluation metrics, contrast L1 and L2 penalties, and plan a controlled ablation study that isolates which pipeline components drive an NLP system's quality.
Machine Learningevaluation-metricsregularizationablation-studyroc-auc - Math & Bit ManipulationMediumAuto-gradedSmallest Primes Prefix: Build the First n Primes
Generate the first n primes in ascending order, which tests sieve design with an upper bound derived from a count, plus handling of non-positive n.
Math & Bit Manipulationprimessievenumber-theorymath - Greedy & IntervalsEasyAuto-gradedFilter Financial Logs by Active Premium Periods
Filter a chronological sequence of transaction records based on whether they fall within active premium membership intervals.
Greedy & Intervalsintervalsdata-filteringhash-table - System DesignMediumModel answerChoosing a Concurrency Model for a CPU-Heavy Image Resizer
Decide between threads, processes, or a hybrid for a CPU-bound image preprocessing service, weighing memory, GIL limits, IPC cost, crash isolation and how to benchmark.
System Designconcurrencythreads-vs-processesshared-memorygil - BehavioralMediumModel answerMotivation and Safety Views for an AI Lab Recruiter Call
Prepare structured, honest answers on why you want to move to an AI lab, what AI safety means to you, misuse risks, and how your experience connects to safety work.
Behavioralbehavioralai-safetymotivationrecruiter-screen - Machine LearningHardModel answerSafely Retiring an Incumbent Ad-Ranking Model
Plan an end-to-end migration from a legacy ad-ranking model to a new one, covering offline validation, off-policy estimates, staged online rollout, conflicting-metric decisions and production risks.
Machine Learningads-rankingoff-policy-evaluationab-testingmodel-rollout - Data Structure DesignMediumAuto-gradedAppend-Only Editor with Undo and Redo Replay
Simulate a tail-only text buffer with undo and redo histories, recording only edits that change the text and clearing redo on every new edit.
Data Structure Designdesignstacksimulationundo-redo - SQL & DataMediumAuto-gradedRebuild a Seven-Day Account Exposure Report from Trade Feeds
Deduplicate late-arriving trade versions, filter by status, window and KYC, then aggregate per account and day into exposure, utilization and breach figures.
SQL & Datadata-manipulationdeduplicationaggregationjoins - System DesignMediumModel answerBuilding a Flash-Sale Seat Booking Platform
Design a booking backend for hot live events that never double-sells a seat, holds seats briefly during checkout, guarantees tickets after successful payment, and fairly offers released seats to a waitlist.
System Designsystem-designconcurrencydistributed-systemspayments - Arrays & HashingMediumAuto-gradedMatch Cells by Four-Way Gap to Nearest Blocker
Compute, for every empty cell, the gap to the nearest blocker in each of four directions using linear sweeps, then return the cells whose four gaps equal a given target.
Arrays & Hashinggridmatrixprefix-sweepsimulation - Arrays & HashingMediumAuto-gradedAssign Persistent Table Column Identifiers
Process sequential database schema snapshots to assign permanent, case-insensitive unique column aliases with automatic collision resolution.
Arrays & Hashingarraysstringsdesign-ds - BehavioralMediumModel answerSequencing Competing Urgent Engineering Work Under Pressure
Behavioral question: describe how you triaged several urgent engineering tasks, told stakeholders about the trade-offs, and re-planned when a new emergency arrived.
Behavioralprioritizationstakeholder-communicationtriagestar-method - BehavioralMediumModel answerAdapting Communication to Interviewer and Stakeholder Needs
Demonstrate emotional intelligence and effective communication by adapting your technical depth based on stakeholder and interviewer cues.
Behavioralbehavioralinterpersonal-skillsstakeholder-managementcommunication - System DesignMediumModel answerUnified Shipping Platform Across Several Courier Services
Design a backend that lets a retailer rate, buy labels, and track parcels across multiple couriers behind a single internal API, with safe retries and fault isolation.
System Designsystem-designapi-designidempotencythird-party-integration - Data Structure DesignHardModel answerReframing Chunked Async Reads into Length-Prefixed Frames
Turn an async sequence of arbitrarily split byte chunks into complete frames, each preceded by a 4-byte big-endian length, while handling truncation and oversized lengths.
Data Structure Designstreamingstate-machineasyncbinary-parsing - BehavioralHardModel answerWalking Through Your Service's Scope, Data, and Dependencies
Describe a system you built: its responsibilities and non-responsibilities, how its data was shared with other teams, a risky upstream dependency, and a boundary problem you personally solved.
Behavioralbehavioralservice-boundariesdata-ownershipdependencies - System DesignHardModel answerDesigning a Firmware Telemetry and Automated Release Validation Platform
Design a scalable architecture for validating hardware telemetry, enforcing schema contracts, and orchestrating automated rollout/rollback decisions based on fleet health metrics.
System Designsystem-designtelemetrystreamingrelease-engineering - System DesignHardModel answerResilient Rate Control and Recovery for Distributed LLM Pipelines
Design a rate-aware ingestion engine and fault-tolerant checkpointing architecture for massive LLM DAG workflows facing strict provider quotas and ambiguous request failures.
System Designsystem-designdistributed-systemsfault-tolerancerate-limiting - Trees & GraphsMediumAuto-gradedRebuild a Nested Menu Tree from Indented Text
Parse an indentation-based, pipe-delimited menu into a nested tree of dictionaries, testing stack-based hierarchy reconstruction and careful field parsing.
Trees & Graphstree-constructionstackparsingstrings - System DesignMediumModel answerWalk Through and Defend the Architecture of a System You Built
Explain a production service you own end to end, then defend its data flow, storage, failure handling and trade-offs as an interviewer probes the weakest points.
System Designsystem-designtechnical-deep-divearchitecturetrade-offs - Arrays & HashingEasyAuto-gradedKeep First Record Per Login ID in Linear Time
Filter a list of record dictionaries so only the first record for each identifier remains, preserving order and doing it in a single linear pass with a hash set.
Arrays & Hashinghash-setdeduplicationarraysorder-preservation - Data Structure DesignMediumModel answerConcurrent Micro-Batching Writer with Backpressure and Timed Flush
Build a thread-safe buffer that accepts records from many producers and writes them to a database in batches, triggered by size, age of the oldest record, or shutdown, without holding locks during I/O.
Data Structure Designconcurrencycondition-variablesbackpressurebatching - System DesignMediumModel answerTriaging an Outage from Giant Logs, Then Building Log Search
Find the cause of a production failure using only SSH and huge log files, then design a centralized logging platform and justify the storage and cost trade-offs.
System Designloggingobservabilityincident-responselinux-cli - Statistics & ExperimentsMediumModel answerGame Plan for a 30-Question Speed Probability Test
Design a concrete strategy for a strictly timed probability and statistics quiz: pacing, question ordering, guessing policy, answer checks, and which techniques to master.
Statistics & Experimentsprobabilitytime-managementmental-mathtest-strategy - Greedy & IntervalsEasyAuto-gradedPartition Array Under Segment Capacity Limit
Determine the minimum number of contiguous segments needed to split an array such that no segment's total sum exceeds a specified capacity limit.
Greedy & Intervalsarraysgreedy