practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6013 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.
- 6013
- Problems
- 2228
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 781–810 of 6013 results
- Trees & GraphsHardAuto-gradedSchedule Tasks with Precedence Constraints
Determine a valid sequential execution order for a set of tasks given dependency rules, or detect impossible circular dependencies.
Trees & Graphstopological sortgraphbfsdegree count - System DesignMediumModel answerBuild a Reliable Recurring Task Scheduler with Recovery
Design a service that fires recurring tasks on time-zone-aware schedules, survives crashes, handles missed runs, and avoids duplicate logical runs.
System Designsystem-designschedulerdistributed-systemsidempotency - System DesignMediumModel answerBuild a Real-Time Story-Grouping News Feed Platform
Design a platform that pulls in millions of articles daily, removes syndicated copies, groups coverage into evolving stories, and serves fast ranked feeds to tens of millions of users.
System Designsystem-designdeduplicationclusteringfeed-ranking - SQL & DataHardModel answerDaily KPI Pipeline and Retention Cohorts in SQL
Write SQL for a photo app: totals, top month, top followed user, daily KPI and follower-bucket tables in Los Angeles time, and week-1 retention cohorts.
SQL & Datasqlwindow-functionstimezonescohort-retention - Greedy & IntervalsMediumAuto-gradedCourier Pay with Overlap Multipliers, Waits and Peak Windows
Sweep-line over time intervals: pay grows with the square of concurrent deliveries, store-wait minutes are isolated, and peak windows double the rate.
Greedy & Intervalssweep-lineintervalsevent-sortingsimulation - System DesignMediumModel answerBuild a Live Programming Competition Judge at Scale
Architect a platform where tens of thousands of contestants submit code during timed contests, with sandboxed grading, fast verdicts and a continuously updated ranking.
System Designsystem-designsandboxingmessage-queueleaderboard - Greedy & IntervalsEasyAuto-gradedIndices of Ranges Fully Inside a Query Range
Scan a list of closed integer ranges and return the indices of those lying entirely within a given query range, testing inclusive boundary handling.
Greedy & Intervalsintervalsarrayscanboundary-conditions - BehavioralMediumModel answerYour Ideal Team Setup: Habits, Norms, and Your Role in It
Explain the working conditions that bring out your best, separating must-haves from preferences, and show how you help create them and adapt when a team works differently.
Behavioralbehavioralteamworkculture-fitcollaboration - Data Structure DesignEasyAuto-gradedReplay Operations on a Fixed-Capacity FIFO Buffer
Simulate a bounded first-in-first-out buffer over a list of put and take commands, rejecting any command that would have to wait.
Data Structure Designqueuesimulationdesignfifo - Machine LearningHardModel answerBuild a Causal Transformer Language Model Block by Block
Write a decoder-only transformer from memory in PyTorch: embeddings, hand-written causal multi-head attention, feed-forward layers, residual wiring, and a logits head.
Machine Learningtransformerpytorchself-attentioncausal-mask - Trees & GraphsEasyModel answerBinary Tree Lateral Perspective and Zero-Sum Triplet Extraction
Solve two fundamental interview tasks: identifying the rightmost nodes of a binary tree by level and finding non-duplicate zero-sum triplets in an un-ordered array.
Trees & Graphsbinary-treebfstwo-pointerssorting - Trees & GraphsMediumAuto-gradedHub Node Pair Counting on a Weighted Tree with Divisible Distances
Count, for each node of a weighted tree, the unordered pairs of other nodes at distances divisible by k and lying in different branches around that node.
Trees & Graphstreedfscountingcombinatorics - BehavioralMediumModel answerLeading a Hard-to-Diagnose Production Incident: Behavioral Answer
Describe a time you drove the investigation of a serious production failure with no obvious cause, covering hypotheses, prioritization, communication, and lasting prevention.
Behavioralbehavioralincident-responseroot-cause-analysisstar-method - Statistics & ExperimentsMediumModel answerRenew or Retire: Evaluating a Costly Flagship Series
Build a data-driven framework to decide whether a streaming service should fund another season of an expensive long-running original series, including how to estimate churn from ending it.
Statistics & Experimentscausal-inferenceproduct-analyticschurndecision-framework - Data Structure DesignEasyAuto-gradedField-Level Visibility Filter for Employee Records
Build a function that returns only the employee record fields a viewer may see, based on admin status, identity, department, reporting line, and view type.
Data Structure Designaccess-controldictionariessimulationrule-evaluation - Data Structure DesignMediumModel answerBuild a Type-Ahead Catalog Lookup with Cancellation and Caching
Build an accessible type-ahead lookup that delays requests, discards outdated responses, remembers past queries, supports keyboard control, and copes with errors.
Data Structure Designfrontendreactdebounceabortcontroller - Data Structure DesignEasyModel answerDismiss-Then-Navigate: A Browser Notice Helper in Plain JS
Write a vanilla JavaScript function that shows a message to the user and moves the page to a given address once the message is closed, skipping the move when the address is not a non-empty string.
Data Structure Designjavascriptdombrowser-apisevent-handling - Data Structure DesignMediumModel answerBuild a Layered In-Memory Work Tracker with Quotas and Deadlines
Design an in-memory work tracker in four growing stages: CRUD, name and priority queries, per-user limits with timed assignments, then completion and lateness reports.
Data Structure Designdesignin-memoryhash-mapsorting - Machine LearningHardModel answerRecommender for a Fast-Changing Catalog with Few Interactions
Design a two-stage recommender for a content app where users and items are constantly new, covering models, exploration, off-policy evaluation, A/B testing and a strict latency budget.
Machine Learningrecommender-systemscold-starttwo-toweroff-policy-evaluation - Data Structure DesignMediumAuto-gradedSliding Log Window: Distinct Tags and Dominant Tag Since a Cutoff
Replay operations on a bounded, timestamp-ordered log of the newest entries, answering cutoff queries with the distinct key count and the most frequent key (smallest on ties).
Data Structure Designdesignhash-mapbinary-searchsliding-window - Linked ListsMediumAuto-gradedLocate the Junction of Two Chains in a Successor Table
Find the first node of one chain that also lies on a second chain, where both chains are encoded in a single successor array, or report -1 if they never converge.
Linked Listslinked-listhash-settwo-pointersintersection - Heaps, Sorting & SearchEasyAuto-gradedPermutation Search Sort: Order a List by Brute Force
Implement a factorial-time sort that tries arrangements until one is non-decreasing, handling duplicates and empty input, and reason about its cost.
Heaps, Sorting & Searchsortingpermutationsbrute-forcecomplexity-analysis - Greedy & IntervalsHardAuto-gradedFind Continuous Peak Resource Load
Find the maximum aggregate load over a set of half-open intervals and identify the earliest contiguous time window sustaining it.
Greedy & Intervalssweep-lineintervalsarrayssorting - Data Structure DesignMediumModel answerDesign a Thread-Safe Log Rotating Sink
Implement a thread-safe, size-bounded rotating file sink class adhering to Liskov substitution and Python context manager protocols.
Data Structure Designobject-oriented-designconcurrencyfile-iopython - Heaps, Sorting & SearchEasyAuto-gradedImpute Missing Grades and Rank Top Candidates
Process raw assessment records by replacing missing marks with course-level medians and return the top 5 performers.
Heaps, Sorting & Searchsortingdata-cleaninghash-tableaggregations - Arrays & HashingMediumAuto-gradedLongest Run Using Only Two Flavors
Find the longest contiguous stretch of an integer array containing at most two distinct values, testing sliding window and frequency tracking.
Arrays & Hashingsliding-windowtwo-pointershash-map - Data Structure DesignHardModel answerBuild a Scalable Memory-Constrained API Ingestion Pipeline
Ingest, normalize, filter, and stream-sort paginated API data under memory constraints with exponential backoff and rate limiting.
Data Structure Designpaginationrate-limitingexternal-sortdata-engineering - Math & Bit ManipulationEasyModel answerCounting Iterations of a C Loop With an Assignment Condition
Work out how many times a C for-loop body runs when its condition is an assignment expression rather than a comparison, and explain the final variable values.
Math & Bit Manipulationc-languagecontrol-flowoperatorsassignment-expression - Data Structure DesignMediumModel answerInterleaved Dual-Thread Sequencer
Coordinate two concurrent threads to output consecutive integers from 1 to n in strictly alternating parity order.
Data Structure Designconcurrencythreadingsynchronizationmutex - Math & Bit ManipulationHardAuto-gradedStop or Pass: Optimal Play in a Two-Player Dice Duel
Find the optimal accept/reject rule and the game value for a symmetric alternating-roll zero-sum game, using a stationary fixed-point equation.
Math & Bit Manipulationexpected-valuegame-theoryoptimal-stoppingfixed-point