practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6131 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.
- 6131
- Problems
- 2274
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 2821–2850 of 6131 results
- Trees & GraphsHardAuto-gradedFewest Rounds to Slay a Scripted Boss With One Revive
Find the minimum number of rounds to defeat a boss that attacks on a repeating script, using state-space BFS over boss HP, player HP, revive flag, and script position.
Trees & Graphsbfsstate-space-searchsimulationshortest-path - Data Structure DesignMediumAuto-gradedReplay a Log on a Budgeted Recency Cache
Simulate a least-recently-used cache whose budget is the sum of per-entry sizes, replaying an operation log and returning each result, using hashing plus recency ordering.
Data Structure Designlru-cacheordered-dicthash-mapsimulation - Trees & GraphsMediumAuto-gradedList Every Non-Repeating Route in a Directed Graph
Enumerate all routes from a source to a target in a directed graph that never revisit a node, returned in lexicographic order, using backtracking DFS.
Trees & Graphsgraphdfsbacktrackingrecursion - System DesignHardModel answerDesign a Cloud Workstation Platform for Engineers
Design a service that gives engineers on-demand remote workstations they reach from a laptop, keep across stops and restarts, and have reclaimed automatically when idle.
System Designsystem-designcontrol-planeprovisioningpersistent-storage - Trees & GraphsMediumAuto-gradedLeft-Packed Tree Check from a Level-Order Array
Decide whether a binary tree given as a level-order array with None placeholders is complete, by rebuilding it and scanning breadth-first for a node that follows a gap.
Trees & Graphsbinary-treebfslevel-ordertree-construction - System DesignMediumModel answerHardening a Multithreaded Task Dispatcher with Rate Limiting
Review a flawed Python task dispatcher for races, deadlocks and limiter bugs, then write tests, derive makespan and success-rate formulas, and design telemetry.
System Designconcurrencydebuggingrate-limitingrace-conditions - System DesignHardModel answerBuilding a Reliable Credit Top-Up Billing Backend
Design a billing service that sells API credits through an external payment provider, crediting each successful payment exactly once despite retries, timeouts, and partial failures.
System Designidempotencydouble-entry-ledgerwebhooksreconciliation - System DesignMediumModel answerFast Dashboards and Auditable Finance Tables from One Event Stream
Design a marketplace order-event pipeline that serves five-minute operational metrics and a reproducible next-morning finance table, weighing batch, streaming, and hybrid approaches.
System Designdata-pipelinestream-processingbatch-processinglambda-architecture - BehavioralMediumModel answerDescribe How You Raised Team Spirits During a Difficult Stretch
A behavioral prompt asking you to share a real example of improving team morale, covering what you did, how you stayed honest about problems, and what measurably changed.
Behavioralbehavioralmoraleteamworkleadership - Arrays & HashingMediumAuto-gradedForced Winner in Complete and Incomplete Card Hands
Rank five-card hands with a tuple key, then decide whether an outcome is forced across all ways to fill in missing cards.
Arrays & Hashingsimulationcombinatoricscountingtie-breaking - System DesignHardModel answerBuild a Team Chat Platform with Live Delivery and Sync
Design a workplace chat backend covering DMs and channels, with sub-second delivery, durable acknowledged messages, per-conversation ordering, and consistent history across devices.
System Designsystem-designwebsocketsmessagingfan-out - BehavioralMediumModel answerSettling a Design Dispute With a Teammate Using Evidence
Walk through a real disagreement over a technical design, showing how you turned opinions into measurable criteria, reached a shared decision, and kept the working relationship strong.
Behavioralbehavioralconflict-resolutiontechnical-decision-makingcommunication - System DesignMediumModel answerCard Payments With Tips and Nightly Batch Capture for a Café Chain
Design a card-present payment flow for a multi-location café chain: hold at swipe, tip added later, and a scalable nightly capture per location with safe retries and reconciliation.
System Designpaymentsidempotencybatch-processingreconciliation - Trees & GraphsMediumAuto-gradedOpen One Wall to Speed Up Multi-Source Spread
Use multi-source BFS and brute force over single wall removals to minimize the time until every target is reached, with strict-improvement tie-breaking.
Trees & Graphsbfsgridmulti-source-bfsbrute-force - System DesignMediumModel answerDeciding What Ops Work to Automate and Where to Stop
Explain how you pick operational toil to automate, how you make automation safe in production, and how you judge when it is good enough, excellent, or not worth building.
System Designsreautomationtoilreliability - Data Structure DesignHardModel answerPattern Router for Sensor Topics with Placeholders and a Tail Wildcard
Design a router that maps dot-separated topics to registered patterns with named placeholders and a trailing "**", using strict left-to-right precedence and backtracking.
Data Structure Designtriebacktrackingroutingpattern-matching - System DesignMediumModel answerBuild a Weighted Traffic Splitter for Multi-Backend Log Pipelines
Design a scalable service that takes logs from many services and splits them across storage backends by live-adjustable percentages, surviving backend outages without losing data.
System Designsystem-designkafkaload-balancingbackpressure - Statistics & ExperimentsMediumModel answerFour Quick Probability and Inference Problems
Four short statistics problems: covariance of the min and max of two uniforms, why sample variance divides by n-1, z-test sample size, and a proof of the one-sided Chebyshev bound.
Statistics & Experimentsorder-statisticscovarianceunbiased-estimationsample-size - System DesignEasyModel answerHow Secure Web Connections Are Set Up and Why Captured Traffic Stays Private
Explain how a secure web session is negotiated, how clients decide to trust a server, and why captured packets resist decryption while a trusted proxy can still read them.
System Designtlshttpsnetworkingcryptography - Statistics & ExperimentsHardModel answerEvaluating an ML Component-Grouping Feature in a Design Tool
Build a measurement plan for an ML feature that auto-groups design elements into reusable components, covering metrics, unit of analysis, power users, and causal lift.
Statistics & Experimentsexperimentationmetricscausal-inferencenetwork-effects - BehavioralMediumModel answerBehavioral Prep for a Low-Latency Trading Engineering Internship
Prepare honest, specific answers on motivation, interests, weakness and reputation for two behavioral rounds at a market-making firm's software internship.
Behavioralbehavioralinternshipmotivationself-awareness - BehavioralEasyModel answerJudgment Calls on Confidential Data and Workplace Respect
Three workplace scenarios on data handling and respectful conduct: pick the most and least appropriate action in each and defend the ranking with a consistent set of principles.
Behavioralsituational-judgmentdata-confidentialityethicsworkplace-conduct - Machine LearningMediumModel answerQuality Assurance Pipeline for a Compliance-Grade RAG Assistant
Design how to measure, gate, monitor, and debug a retrieval-augmented assistant that serves regulated, multi-tenant content, including root-cause triage of bad answers.
Machine Learningragllm-evaluationmlopsllm-as-judge - SQL & DataEasyAuto-gradedSum Open Credit Balances per Customer, Sorted by ID
Filter records by a status value, total a numeric field per customer ID, and return the results sorted by ID, mirroring a SQL filter, group and order query in Python.
SQL & Datahash-mapaggregationgroup-bysorting - System DesignMediumModel answerBuild a Persistent Real-Time Messaging Service with Reliable Sync
Design a text messaging service where conversations are stored durably, messages arrive live, and clients recover cleanly from disconnects, retries, and duplicate events.
System Designsystem-designchatwebsocketsidempotency - BehavioralMediumModel answerLeaving Your Job: Articulating Your Reasons and Handling the Handover
Answer a behavioral question about why you want to move on from your role and how you told your manager and managed the handover, without badmouthing your employer.
Behavioralbehavioralcareer-motivationcommunicationtransition-planning - Statistics & ExperimentsMediumModel answerChoosing Charts to Communicate a Streaming Engagement Metric
Pick one streaming engagement metric, define it precisely, and justify at least two chart types that answer different stakeholder questions while avoiding common misreadings.
Statistics & Experimentsdata-visualizationmetric-designanalyticsstakeholder-communication - BehavioralMediumModel answerFive Behavioral Stories Every Software Engineer Should Prepare
Build a bank of concrete stories covering disagreement, self-started improvement, persuasion, ambiguity and failure, and deliver each with clear scope, personal actions, trade-offs and results.
Behavioralbehavioralstar-methodconflict-resolutionownership - BehavioralMediumModel answerRecruiter Phone Screen: Motivation, Skills and Pay Questions
Prepare structured answers for a recruiter screen at a payments company: intro, differentiators, motivation, language proficiency, a hard situation, and salary expectations.
Behavioralbehavioralrecruiter-screenstar-methodmotivation - Stacks & QueuesMediumAuto-gradedCheckout Totals After Next Cheaper Coupon Item
Find, for each element, the nearest later value that is less than or equal to it and subtract it, which tests monotonic stack reasoning on arrays.
Stacks & Queuesmonotonic-stackarraysnext-smaller-element