practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5972 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.
- 5972
- Problems
- 2212
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 151–180 of 3760 results
- System DesignHardModel answerInput Event Capture and Deterministic Text Replay Design
Design a pipeline that records keyboard, mouse and IME events from several devices, orders them globally, persists a log, and rebuilds the exact typed text on replay.
System Designsystem-designevent-sourcingimewrite-ahead-log - StringsEasyModel answerLetter-Match Feedback Widget for a Five-Letter Word Game
Build a small browser widget that scores a typed guess of up to five letters against a fixed secret word, marking each letter exact, misplaced or absent, with sound input handling.
Stringsstringsfrontendstate-managementinput-validation - System DesignMediumModel answerCI Pipelines with Jenkins and Handling Oversized Log Files
Discuss your delivery-automation experience, design a Jenkins build-and-test pipeline with plugins, and explain how to search a log too big to open without loading it into memory.
System Designjenkinsci-cddevopslog-analysis - Data Structure DesignEasyModel answerResolving Name Clashes Across Two Python Parent Classes
Predict which inherited method runs when a class has two parents defining the same method name, and explain Python's lookup order, super() cooperation, and alternatives.
Data Structure Designpythoninheritancemroc3-linearization - BehavioralEasyModel answerAligning Two Teams After a Technical Disagreement
Tell a true story about a technical dispute with another team, covering the decision process, nontechnical pressures, your role, and how you confirmed lasting alignment.
Behavioralbehavioralconflict-resolutioncross-teamcommunication - 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 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - System DesignHardModel answerDesign an EV Fast-Charging Network Backend: Metering, Telemetry, Locator
Design a backend for a fleet of EV fast-charging stalls covering energy-based billing, long-term health telemetry, and a nearby-available-charger search with prices.
System Designsystem-designiotbillingtelemetry - BehavioralMediumModel answerStructuring a Story About Technical Project Leadership
A framework for detailing a technical project you led, covering technical trade-offs, goal setting, scope management, and leadership lessons.
Behavioralbehavioralleadershipproject managementtechnical judgment - Machine LearningHardModel answerRapid-Fire ML Fundamentals Check for a Product Recommender
Answer a set of short core machine-learning questions covering models, regularization, evaluation, optimization and ranking, framed around building a product recommendation system.
Machine Learningmachine-learningfundamentalsregularizationevaluation - Statistics & ExperimentsMediumModel answerChance That Two Random Lamp Schedules Overlap
Two independent events start at uniformly random times in a 30-day window and last 9 and 12 days. Find the probability that their active periods share at least one moment.
Statistics & Experimentsgeometric-probabilityuniform-distributioninterval-overlapcontinuous-probability - Dynamic ProgrammingHardModel answerMaximize Allocation Across Server Pools with Migration Limits
Aggregate daily resource usages and calculate optimal allocations under unrestricted and migration-bounded pool selection constraints using dynamic programming.
Dynamic Programmingarraysdynamic-programminggreedy-intervals - Data Structure DesignMediumModel answerBuild a Weighted Hash Ring for Sharding Keys Across Servers
Design a hash ring with weighted virtual nodes that assigns keys to servers, supports adding and removing servers with little key movement, and handles collisions and concurrency.
Data Structure Designconsistent-hashingvirtual-nodesbinary-searchthread-safety