practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6128 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.
- 6128
- Problems
- 2272
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 2731–2760 of 6128 results
- Machine LearningMediumModel answerSelf-Attention Deep Dive: Q, K, V Roles and Transformer Design Trade-offs
Explain how self-attention builds queries, keys and values, what the value vectors do, and why Transformers handle long-range context better than recurrent models.
Machine Learningtransformersself-attentionqkvmulti-head-attention - System DesignMediumModel answerBuild a Real-Time Ad Decision Service with Spend Controls
Design a backend that picks one ad per page slot within a strict latency limit, logs views and clicks for billing, and keeps campaign spend within budget and spread across the day.
System Designsystem-designad-servinglow-latencybudget-pacing - Dynamic ProgrammingHardAuto-gradedFull-String Matching with Dot and Star Wildcards
Decide whether a whole text matches a pattern with '.' and '*' wildcards, using prefix-based dynamic programming over text and pattern positions.
Dynamic Programmingdynamic-programmingstringspattern-matchingrecursion - Greedy & IntervalsMediumModel answerReal-Time Courier-to-Delivery Matching Engine Design
Design a scalable real-time engine that matches couriers to incoming delivery requests, defining the cost model, candidate pruning, matching method, complexity, and failure handling.
Greedy & Intervalsmatchinggreedyspatial-indexreal-time - Greedy & IntervalsMediumAuto-gradedMinimum Removals for Conflict-Free Time Slots
Tests the greedy earliest-finish strategy: find the fewest ranges to discard so the rest share no interior points, with touching endpoints allowed.
Greedy & Intervalsgreedyintervalssortinginterval-scheduling - System DesignHardModel answerBuilding a Fault-Tolerant HTTP Traffic Distribution Layer
Design a resilient, horizontally scalable HTTP/HTTPS traffic distribution tier that routes by path or header, tracks backend health, and survives node and control-plane failures without dropping connections.
System Designload-balancinghigh-availabilitylayer-7health-checks - StringsEasyAuto-gradedDecode an Ancient Numeral String into a Number
Parse a valid Roman numeral string into its integer value by handling additive symbols and the six subtractive pairs.
Stringsstringshash-mapparsingsimulation - Arrays & HashingMediumAuto-gradedMerge Mutual Connections Into Earliest-Confirmed Pairs
Tests normalizing undirected pairs, filtering pending rows, and keeping the earliest date per pair from a list of event dictionaries, with deterministic sorted output.
Arrays & Hashinghash-mapgroupingnormalizationsorting - BehavioralMediumModel answerMotivation and Project Leadership in a Small Distributed Hardware Team
Answer a two-part behavioral prompt: explain why you want a specific role on a small global chip-packaging team, and describe a project you led, including your authority and cross-site work.
Behavioralbehavioralleadershipmotivationcross-site collaboration - Machine LearningMediumModel answerCore ML Concepts: Trees, Training Loops, Metrics, Embeddings, Attention
A five-part conceptual walkthrough covering ensembles of trees, supervised training, evaluation under imbalance, embeddings, and the basics of transformer attention.
Machine Learningdecision-treesgradient-boostingoverfittingevaluation-metrics - Linked ListsEasyAuto-gradedCombine Two Ascending Sequences Into One
Tests a two-pointer merge of two non-decreasing integer lists into a single sorted list, handling empty inputs and duplicate values correctly.
Linked Liststwo-pointersmergesorting - StringsMediumModel answerThree-Part Drill: Anagram Buckets, One-Swap Max, Sentiment Top-K
A three-part coding set: bucket words by letter makeup, maximize a number with at most one digit swap, and rank hotels by keyword-based review sentiment.
Stringshash-mapanagramsgreedytokenization - Data Structure DesignMediumModel answerTackling Long-Winded Data Structure Design Problems Step by Step
Describe a repeatable process for data-structure designs that are simple to state but long to code, then apply it to a price-time-priority limit order book.
Data Structure Designdata-structure-designorder-bookinvariantslazy-deletion - System DesignHardModel answerDocument-Grounded Chat at Scale: Upload, Index, and Serve Sessions
Design a multi-document chat backend where each session accepts up to 200 files, covering async indexing, latency budgets, safe caching, and rate-limit-aware admission control.
System Designragsystem-designasync-ingestionlatency-budget - Trees & GraphsMediumModel answerResolve Out-of-Order Variable Assignments in a Mini Language
Parse lines of integer assignments using only + and -, resolve forward and chained references, and report undefined names and cycles in a well-defined way.
Trees & Graphstopological-sortparsingdependency-graphcycle-detection - Statistics & ExperimentsHardModel answerA/B Testing Auction Revenue with Heavy Tails and Zeros
Design a defensible inference plan for comparing mean revenue between two arms when data is zero-heavy, extremely skewed and contaminated by spikes, including outlier handling and multiple-testing control.
Statistics & Experimentsab-testingbootstrapwinsorizationheavy-tails - System DesignMediumModel answerDesigning a Low-Latency Feature Platform for Ranking Models
Design a platform that serves fresh features to a ranking model in milliseconds and also builds leak-free historical training sets, keeping the two paths consistent.
System Designfeature-storeml-system-designstreamingpoint-in-time-join - StringsMediumAuto-gradedShrink Repeated Letters into Letter-Count Pairs
Encode each maximal run of equal letters as the letter plus its decimal count, and fall back to the input when the encoding is not strictly shorter.
Stringsstringstwo-pointersrun-length-encodingsimulation - System DesignMediumModel answerBuild a Retry-Safe Background Job Service for Heavy Tasks
Design an HTTP service that accepts long-running jobs, returns immediately, deduplicates client retries, and survives worker crashes without repeating side effects.
System Designidempotencymessage-queuesdistributed-systemsoutbox-pattern - BehavioralMediumModel answerDriving Clarity on Fuzzy Projects Across Product and Design
A behavioral practice set on explaining past projects, agent-based features, designer collaboration, and scoping work when requirements are unclear or shifting.
Behavioralbehavioralcommunicationstakeholder-managementscoping - Data Structure DesignMediumModel answerBuild a Persistent Storage Layer for a Mini Database Engine
Design and implement the last stage of a database engine: a catalog of databases, schemas, and tables plus durable row insert, read, update, and delete that survives restarts.
Data Structure Designstorage-enginepersistencecrash-safetywrite-ahead-log - BehavioralHardModel answerFour Career Stories: Pride, Disagreement, Near-Failure, Team Habits
Prepare four structured stories for a senior engineering behavioral round: a standout project, a technical disagreement, a near-failed effort, and the habits and motives you bring to a new team.
Behavioralbehavioralstar-methodsenior-engineerconflict-resolution - BehavioralMediumModel answerDefending Your Role in a Technical Project Walkthrough
Present a complex project you worked on, separate your own contributions from your team's, defend key design decisions, quantify results, and reflect honestly on what you would change.
Behavioralbehavioralownershipproject-deep-divetrade-offs - Statistics & ExperimentsMediumModel answerTwo Random Cuts on a Rope: Chance of Forming a Triangle
Cut a unit-length rope at two independent uniform points and find the probability the three segments can be the sides of a triangle, with a clear derivation.
Statistics & Experimentsgeometric-probabilityuniform-distributiontriangle-inequalitycontinuous-random-variables - SQL & DataMediumModel answerApproved-Profile Daily Snapshot with Country Rollup and Checks
Build a point-in-time snapshot of profiles whose latest version has an approved final review, add 7-day engagement and country rollups, and write data-quality and rerun-safety checks.
SQL & Datasqlwindow-functionspoint-in-time-snapshotdata-validation - SQL & DataMediumModel answerFlagging Heavy VR Headset Users: Streak Detection in SQL
Define a precise rule for excessive headset use, then write SQL that counts flagged users, active users, and the flagged share over a trailing 30-day window.
SQL & Datasqlgaps-and-islandswindow-functionsmetric-definition - BehavioralMediumModel answerHandling an Analysis That Contradicts Your Team's Beliefs
Describe how you would handle a situation where your analysis disagrees with what your team believes, covering validation, communication, alignment, and follow-through.
Behavioralbehavioralstakeholder-managementdata-storytellingdisagree-and-commit - BehavioralMediumModel answerAudit an App Feature: Heuristics, Redesign, and A/B Validation
Evaluate one well-designed and one poorly designed feature in an app you use daily, redesign the weak one, and plan an experiment with metrics and guardrails that accounts for novelty effects.
Behavioralproduct-senseusabilityaccessibilityexperiment-design - System DesignHardModel answerBuild a Live Same-Day Delivery Dashboard for a Station Lead
Design a dashboard for a delivery-station lead covering metric definitions, chart choices, layout, interactions, alerting, validation, and scalable aggregation that keeps tail behavior visible.
System Designdashboard-designmetricsvisualizationalerting - Data Structure DesignMediumAuto-gradedSubtree Earnings Ledger with Ranked Threshold Queries
Simulate a command sequence on a referral forest, maintaining subtree revenue totals and answering ranked queries filtered by a strict threshold.
Data Structure Designhash-maptreesimulationsorting