practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5981 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.
- 5981
- Problems
- 2215
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 271–300 of 5981 results
- Data Structure DesignMediumModel answerDesign an Audio Player Core with Queue Management and Shuffle Logic
Architect the object-oriented structure and state machine for a media player featuring play/pause controls, queue prioritization, looping modes, and deterministic shuffle handling.
Data Structure DesignObject-Oriented DesignState MachineData Structure Design - Machine LearningMediumModel answerBuild a Linear Layer and Stable Softmax in NumPy
Write a fully connected layer and a numerically stable row-wise softmax as Python classes in NumPy, paying attention to shapes, broadcasting and overflow.
Machine Learningnumpyneural-networkssoftmaxbroadcasting - Data Structure DesignMediumAuto-gradedFixed-Size Ring Buffer Command Simulator
Simulate a bounded FIFO ring buffer driven by a list of commands, handling wrap-around, full and empty states, and returning each command's result in order.
Data Structure Designdesignqueuering-buffersimulation - Data Structure DesignMediumModel answerBuild a Playing-Card Deck with Fair Shuffle and Custom Sort
Model a 52-card deck, return an unbiased random permutation, and list the cards in a defined rank-then-suit order, with data structures and complexity explained.
Data Structure Designobject-oriented-designshufflefisher-yatessorting - System DesignMediumModel answerBuild a Fast Pipeline for a Million-Test Suite Under Ten Minutes
Design a CI pipeline that compiles a code change and executes roughly one million tests, returning results in ten minutes, while justifying sharding, caching, flakiness and cost decisions.
System Designcontinuous-integrationshardingschedulingcaching - BehavioralMediumModel answerPost-Incident Ownership and Catching Silent Failures in Bulk Task Migrations
Describe a production failure you owned, then design automated checks that catch migrated jobs that silently stop producing output, with no dedicated QA team.
Behavioralincident-responsemigrationmonitoringownership - System DesignMediumModel answerBuild a Race-Safe, Screen-Reader-Friendly Typeahead Combobox
Build a generic React typeahead that debounces input, discards out-of-order responses, follows the ARIA combobox pattern, and supports full keyboard control.
System Designreactaccessibilityariadebounce - BehavioralEasyModel answerNaming a Gap in Your Last Team's Engineering Habits
Behavioral question on identifying one real weakness in a former team, explaining its cost and cause, and showing your own constructive role without blaming anyone.
Behavioralbehavioralteamworkretrospectivecommunication - Statistics & ExperimentsMediumModel answerEstimating a Ride-Subscription Effect: Switchback, Matching, Non-Compliance
Estimate how a paid subscription changes rides per user using a time-alternating city test, propensity-score methods on launch data, and instrumental-variable analysis of a randomized test with partial uptake.
Statistics & Experimentscausal-inferenceswitchbackpropensity-scoreinstrumental-variables - Greedy & IntervalsHardAuto-gradedShared High-Activity Windows Across Sensor Feeds
Merge step-function sensor feeds with a sweep over status-change events to find every maximal inclusive window in which all feeds are at or above a level.
Greedy & Intervalssweep-lineintervalsstep-functionbinary-search - Math & Bit ManipulationEasyAuto-gradedBinomial and Poisson Rare Event Tail Probabilities
Computes the exact binomial tail probability P(X > k) and its Poisson approximation parameterised by lambda = n * p.
Math & Bit Manipulationmathstatisticsprobability - Stacks & QueuesMediumModel answerJava Concurrent Collections Deep Dive: ConcurrentHashMap and Queues
Explore the internal architecture, thread-safety mechanisms, and practical performance trade-offs of Java's ConcurrentHashMap and concurrent queue variants.
Stacks & Queuesjavaconcurrencydata-structuresmultithreading - System DesignMediumModel answerBoolean Keyword Search Engine for a High-Volume Short-Post Feed
Design a sharded, near-real-time inverted index that answers AND/OR/NOT keyword queries over a stream of 10K new short posts per second within 200 ms.
System Designinverted-indexsearchshardingkafka - Arrays & HashingMediumAuto-gradedThree-Bucket Rearrangement With Constant Extra Space
Tests in-place three-way partitioning of an array holding only 0, 1 and 2 using constant extra space and a single linear pass, with careful pointer invariants.
Arrays & Hashingtwo-pointersin-placepartitioningsorting - Greedy & IntervalsMediumModel answerFind the Largest Non-Decreasing Integer Below N
Find the maximum integer less than or equal to n whose decimal digits do not decrease from left to right.
Greedy & Intervalsgreedymath-bitsstrings - Machine LearningHardModel answerDesigning Query, Key, and Value Vectors for Recommender Cross-Attention
Explain and contrast Query-Key-Value representations for cross-attention mechanisms in candidate-aware recommendation systems.
Machine Learningtransformersattentionrecommendation-systemsdeep-learning - Data Structure DesignMediumAuto-gradedExpense Reimbursement Ledger Simulator
Simulate an expense tracking ledger executing sequential API calls with validation and error checks.
Data Structure Designdesign-dsarrayshash-table - Trees & GraphsMediumModel answerReconstruct Binary Tree from Inorder and Postorder Sequences
Reconstruct a binary tree given its inorder and postorder traversal arrays, assuming all node values are unique.
Trees & Graphstrees-graphsrecursionhash-table - System DesignMediumModel answerStreaming Audio Backend: Catalog Lookup, Shared Lists, Remote Control
Design a backend for a streaming audio app covering searchable catalog, concurrently edited playlists, and ordered cross-device playback control at 50M MAU scale.
System Designsystem-designsearch-indexconcurrency-controlwebsocket - BehavioralHardModel answerBalancing Safety Filters Against a Launch Growth Push
Behavioral scenario: a senior growth PM wants a looser upload filter before launch. Plan the conflict, a reversible rollout with a kill-switch, respectful escalation, and a real example.
Behavioralconflict-resolutionstakeholder-managementexperiment-designescalation - Trees & GraphsEasyAuto-gradedVerify Root Sequence Match in N-ary Tree
Determine if a given target sequence matches a top-down path in an N-ary tree represented by nested dictionaries.
Trees & Graphstrees-graphsrecursiondfstree-traversal - BehavioralMediumModel answerTracking Down Intermittent Production Errors Using Only Logs
Plan a log-driven investigation of sporadic production failures that never show up in local tests, including team task split, hypothesis tracking, fix verification and a postmortem.
Behavioraldebuggingobservabilityincident-responselogging - Greedy & IntervalsMediumAuto-gradedCollapse Booked Time Ranges Into Disjoint Blocks
Combine closed integer ranges that overlap or share an endpoint into disjoint blocks, tests sorting plus a single sweep and careful boundary handling.
Greedy & Intervalsintervalssortinggreedysweep - System DesignHardModel answerBuilding a Multi-Tenant SQL Gateway on Iceberg Data Lakes
Architect a hosted service that accepts SQL from a UI or API, plans and runs it against Iceberg tables on shared compute, and returns results while isolating tenants and handling writes.
System Designsystem-designapache-icebergdistributed-querymulti-tenancy - Data Structure DesignMediumAuto-gradedNested Undo-Log Session Store with Value Tallies
Simulate an in-memory key-value store with nested transactions, a global commit, and a live per-value key tally, processing a batch of operations and returning each result.
Data Structure Designhash-mapundo-logtransactionssimulation - BehavioralMediumModel answerRestoring a Sustainable Pace for a Stretched Engineering Org
As a senior manager, explain how you would find the cause of team overload, reset priorities, rebalance capacity, negotiate with stakeholders, protect morale, and verify that the plan works.
Behavioralleadershipprioritizationstakeholder-managementteam-health - Trees & GraphsMediumAuto-gradedCounting Separate Land Patches in a 0/1 Grid
Count connected components of 1-cells in a binary grid using only up/down/left/right adjacency, via flood fill or union-find.
Trees & Graphsgraphbfsconnected-componentsmatrix - Arrays & HashingMediumAuto-gradedRepeat Visitors Across UTC Days in an Event Feed
Normalize ISO 8601 timestamps to UTC dates and use hashing to find users active on at least two distinct UTC calendar days.
Arrays & Hashinghashingdatetimetimezonelogs - Math & Bit ManipulationMediumAuto-gradedCover an IPv4 Address Run with the Fewest Prefix Blocks
Split a run of consecutive IPv4 addresses into the fewest aligned power-of-two prefix blocks using 32-bit integer and lowest-set-bit reasoning.
Math & Bit Manipulationbit-manipulationgreedyipv4cidr - Data Structure DesignEasyModel answerFleet Command Console for Grid-Walking Robots
Design a text-driven controller that manages several robots on an unbounded grid, handling turns, steps, selection, error cases and cell collisions.
Data Structure Designsimulationhash-mapcommand-parsingstate-machine