practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6035 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.
- 6035
- Problems
- 2235
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 1111–1140 of 6035 results
- System DesignMediumModel answerDesign a Sharded Replicated Key-Value Store for 1M Ops/Sec
Design a distributed key-value database serving 1M ops/sec over 50M records with low tail latency, five-nines availability, tunable consistency and durable acknowledged writes.
System Designdistributed-systemskey-value-storereplicationconsistent-hashing - Machine LearningMediumModel answerPriority Inbox and Thread Digests for a Large Webmail Product
Design a low-latency, privacy-preserving system that reorders a user's inbox by importance and attaches faithful LLM-written digests to the most important threads.
Machine Learningml-system-designlearning-to-rankllm-summarizationprivacy - Heaps, Sorting & SearchMediumAuto-gradedShortest-Stack Block Placement Order
Simulate placing blocks one at a time onto the currently lowest of k stacks, with ties going to the lowest index, and report each chosen stack; tests heap-based greedy simulation.
Heaps, Sorting & Searchheappriority-queuegreedysimulation - Data Structure DesignMediumModel answerBuilding a Cache-Friendly Lookup Table for a Hot Loop
Design a hash table for a performance-critical inner loop, covering collision strategy, memory layout, probing, load factor, prefetching, and how to benchmark it.
Data Structure Designhash-tableopen-addressingsimdcache-optimization - System DesignMediumModel answerServing a Video Captioner on a Tight GPU Budget, Then Searching It
Design a memory- and compute-efficient serving stack for a multimodal video captioning model, then a fast search-and-watermark pipeline for advertisers over existing captions and embeddings.
System Designml-system-designmultimodalmodel-servingquantization - StringsEasyAuto-gradedStitch Glyph Rows Into a Banner
Combine per-character row strings from a font table into banner lines by joining row i of every glyph in order.
Stringsstringssimulationhash-mapjoin - Greedy & IntervalsMediumModel answerDecode Non-Overlapping Keyphrase Spans from BERT Logits
Implement a decoder that converts token start and end logits into non-overlapping character spans using offset mappings and greedy selection.
Greedy & Intervalsstringsgreedy-intervalsmachine-learningsorting - BehavioralMediumModel answerData Scientist Ownership Stories: Impact, Failure, Communication
Four behavioral prompts for modeling roles: an end-to-end project with a trade-off, your ideal team setup, a production failure, and explaining model outputs to non-technical partners.
Behavioralbehavioraldata-scienceownershipstakeholder-communication - System DesignHardModel answerMetadata Store for Folders, Quotas and Largest-File Queries
Design an in-memory hierarchical file metadata service with create, recursive delete, fast top-k largest files per directory, and nested quota enforcement, plus a multi-node scaling plan.
System Designsystem-designtreesorted-indexquota - BehavioralMediumModel answerCareer Break Story and Recent Project Ownership Walkthrough
Answer a status-and-gap question concisely, then give a project deep-dive that separates your own work from the team's, with decisions, measurable results, and lessons.
Behavioralbehavioralproject-deep-diveownershipemployment-gap - System DesignMediumModel answerPhoto Library Backend: Safe Uploads, Dedup and Database Growth
Design the storage backend for a photo-sharing service, covering upload consistency, instant visibility, duplicate prevention, and how to justify and scale the metadata database.
System Designsystem-designobject-storageconsistencydeduplication - Arrays & HashingMediumAuto-gradedMaximum Consecutive Ones With a Single Bit Repair
Find the longest stretch of 1s achievable in a binary list when at most one 0 may be changed to 1, using a two-pointer window that tolerates one zero.
Arrays & Hashingsliding-windowtwo-pointersbinary-array - System DesignMediumModel answerSingle-Active Worker Coordination with Expiring Redis Locks
Design a way for a fleet of identical workers to pick exactly one active instance using Redis expiring keys, covering failover, fencing, pauses, clock assumptions and Redis outages.
System Designleader-electionredisdistributed-systemsfencing-token - Data Structure DesignHardModel answerGreedy Longest-Match Subword Encoder Built on a Byte Trie
Design and implement a deterministic subword encoder that uses a trie for longest-match lookup, with lossless Unicode handling, versioned vocabularies, tests, and a comparison with BPE and WordPiece.
Data Structure Designtrietokenizerunicodenlp - BehavioralMediumModel answerBehavioral Prep: Extra Mile, Failed Disagreement, Demand Project
Prepare three structured stories for a data scientist loop: exceeding scope, a disagreement that went badly, and a deep dive on a project forecasting fluctuating demand in a marketplace.
Behavioralbehavioralstar-methoddata-sciencestakeholder-management - Arrays & HashingEasyAuto-gradedFinancial Payback and Sensitivity Analysis for Renewable Energy
Perform quantitative financial modeling and sensitivity analysis for renewable energy pilot projects.
Arrays & Hashingfinancesensitivity-analysismathstatistics - StringsMediumAuto-gradedEvaluate Arithmetic String Without Parentheses
Parse and compute a non-negative integer arithmetic string with basic binary operators while preserving standard precedence and left-to-right evaluation.
Stringsstringsparsingstacks-queuesmath-bits - Heaps, Sorting & SearchMediumModel answerBatched API Delivery with Delay-Aware Retries
Deliver a list of requests through an API capped at five per call, retrying failures only after each request's own cooldown, without busy-waiting or blocking on one failure.
Heaps, Sorting & Searchbatchingretryschedulingpriority-queue - Data Structure DesignMediumAuto-gradedLatest-Wins Priority Job Runner Simulation
Simulate a job runner where resubmitting an ID overrides its earlier entry, testing heap-based lazy deletion with tie-breaking and run-once rules.
Data Structure Designheaplazy-deletionsimulationhash-map - Machine LearningHardModel answerDefining Core Metrics for a Web Threat Detection Classifier
Define and evaluate a primary metric for an automated web threat detection system, balancing user protection, false alarm friction, and ground-truth validation strategies.
Machine LearningMetricsMachine LearningSystem DesignEvaluation - System DesignMediumModel answerTCP vs UDP Trade-offs and How TCP Infers Packet Loss
Compare TCP and UDP across reliability, ordering, congestion control, setup and overhead, then explain how TCP detects loss through timers, duplicate ACKs and SACK.
System Designnetworkingtcpudpcongestion-control - Statistics & ExperimentsHardModel answerNegative Skew in Returns and the Two Terms of a Call Price
Explain what negative skew means for return distributions and tail risk, then interpret each of the two terms in the Black–Scholes call formula using risk-neutral probabilities.
Statistics & Experimentsskewnesstail-riskblack-scholesrisk-neutral-pricing - Stacks & QueuesMediumAuto-gradedDeserialize Nested List Structure
Parse a string encoding nested lists and non-negative integers into a Python list structure.
Stacks & Queuesstacksstringsparsingrecursion - Greedy & IntervalsEasyAuto-gradedSettle Shared Expenses With a Two-Pointer Payment Plan
Turn a map of net balances into a deterministic list of payments that zeroes every account, using a sorted two-pointer greedy match between debtors and creditors.
Greedy & Intervalsgreedytwo-pointershash-mapsorting - Linked ListsHardAuto-gradedLocate Duplicate Integer with Strict Space Limit
Find the single repeated value in an array of size n + 1 containing integers from 1 to n without altering the array or using extra space.
Linked Liststwo-pointersarrayslinked-listfloyds-algorithm - Greedy & IntervalsMediumAuto-gradedCombine Two Ordered Schedules into One Gap-Free Timeline
Merge two sorted lists of internally disjoint closed intervals into one sorted, disjoint list, joining overlapping or endpoint-touching intervals, in linear time.
Greedy & Intervalsintervalstwo-pointersmergesweep-line - System DesignHardModel answerGlobal Edge Abuse-IP Filtering with Fast Rollback
Design a worldwide edge service that scores client IPs per request, shares abuse signals between regions within seconds, and can undo bad blocklist changes in under ten seconds.
System Designsystem-designdistributed-systemsedge-computingreplication - Statistics & ExperimentsMediumModel answerEvaluating a Free-Trial Experiment on Paid Subscriptions
Design metrics, test conversion lift, assess 30-day churn, and make a rollout call for an A/B test offering free users a trial of a paid plan.
Statistics & Experimentsab-testingconversion-liftchurntwo-proportion-test - BehavioralMediumModel answerDescribe a Time You Made a Trade-off or Compromise with Team Members
Demonstrate how you handle technical disagreements, balance competing priorities, follow through on long-term goals, and reflect on the outcome.
Behavioralbehavioralconflict-resolutionleadershipcommunication - System DesignHardModel answerMultithreaded Shortest-Path Search for a Wheel Combination Lock
Design a thread-parallel breadth-first search that finds the fewest moves to open a multi-wheel combination lock, covering work splitting, safe visited tracking, level ordering and trade-offs.
System Designbfsconcurrencyparallel-algorithmsgraph-search