practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6138 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.
- 6138
- Problems
- 2277
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 2941–2970 of 6138 results
- BehavioralMediumModel answerPushing Back on a Senior Decision: A Behavioral Playbook
Prepare a structured story about a time you challenged a senior leader's decision, covering how you made your case, how it resolved, and what you would change.
Behavioralbehavioralconflict-resolutionstakeholder-managementinfluence - Greedy & IntervalsMediumAuto-gradedFind the First Free Slot After Busy Minutes in Text Schedules
Parse text schedule entries into inclusive minute intervals, merge them, and find the earliest k-minute free slot that follows the first busy minute of the day.
Greedy & Intervalsintervalsmerge-intervalsstring-parsingsorting - Data Structure DesignMediumModel answerResilient Chargeback Inbox: Normalize, Cache, and Cancel in React
Build a React dispute list that normalizes inconsistent API data, caches queries for 60 seconds, and avoids stale responses when filters or search change quickly.
Data Structure Designreacttypescriptcachingrace-conditions - Statistics & ExperimentsMediumModel answerMeasuring a Premium Plan Launch and Flagging Risky Accounts
Define primary, diagnostic and guardrail metrics for a paid-plan launch using only three tables, then build explainable rule-based SQL that scores accounts for financial-crime risk.
Statistics & Experimentsmetricsexperimentationsqlfraud-detection - System DesignMediumModel answerBuild a Conversational Catalog Search Agent with Guardrails
Design a multi-step conversational search assistant over a read-only catalog that clarifies intent, enforces hard constraints, grounds answers in records, and falls back safely.
System Designagentic-searchretrievalllm-agentsgrounding - BehavioralMediumModel answerWalk Through a Decision You Informed With Causal Methods
Describe a real project where you estimated a causal effect without a clean experiment, covering the identification problem, method, diagnostics, the decision made, and what you would redo.
Behavioralcausal-inferencebehavioralobservational-studiesexperimentation - Trees & GraphsMediumAuto-gradedService Inventory Filter and Dependency Risk Report
Filter a service inventory by namespace, attributes and status, then compute transitive dependencies and risk flags from a root service, handling cycles and dangling references.
Trees & Graphsgraph-traversaldfshash-mapfiltering - System DesignMediumModel answerBuild a Pluggable Connector Layer for Third-Party Services
Design a platform that lets a product authorize customer accounts at many external vendors, run actions against them, and ingest their events reliably, with new connectors cheap to add.
System Designsystem-designintegrationswebhooksidempotency - SQL & DataMediumAuto-gradedLive Stream Creator Stats: Weekly, Monthly Rankings and Daily Check
Join two record lists on a composite key with missing-row defaults, then compute a filtered distinct count, a per-group top-5 ranking with tie-breaks, and an every-item condition check.
SQL & Datajoinsgroup-byrankingtie-breaking - System DesignHardModel answerBuild a Composable Filesystem Query Engine in the Spirit of find
Design an extensible, object-oriented library and CLI that walks directory trees, filters entries with composable predicates, and handles symlinks, errors, and huge trees.
System Designobject-oriented-designfilesystempredicatestraversal - StringsMediumAuto-gradedFewest Source Slices to Spell a Target
Find the minimum number of source substrings whose concatenation equals the target, using longest-match-per-position and a greedy jump pass.
Stringsstringsgreedysuffix-automatontwo-pointers - Statistics & ExperimentsMediumModel answerEvaluating a Dispatch Change: Welch Test on Pickup Wait Times
Compute a Welch's t-test p-value on pickup wait times for one city and month, then judge whether the result is trustworthy and propose a sounder experiment for a shared fleet.
Statistics & Experimentswelch-t-testpandasab-testinginterference - Trees & GraphsMediumAuto-gradedShortest Route to an Exit with Fixed Direction Priority
Run BFS on a character grid to return the shortest move sequence to any exit, breaking ties by a fixed U, D, L, R direction priority.
Trees & Graphsbfsgridshortest-pathpath-reconstruction - Math & Bit ManipulationEasyAuto-gradedLamps After Divisor Sweeps
Count how many of n switches end up on after sweeping by every step size, which tests the divisor-parity and perfect-square insight.
Math & Bit Manipulationmathnumber-theoryperfect-squaresdivisors - Statistics & ExperimentsMediumModel answerRoot-Causing a Sudden Drop in Marketplace Sales
Describe how you would investigate an unexpected, sustained fall in a company's sales: which metrics to break down, which data sources to pull, and how to turn findings into an action.
Statistics & Experimentsroot-cause-analysismetricsfunnel-analysiscohort-analysis - Dynamic ProgrammingMediumAuto-gradedCounting Valid Ordered Binary Trees on n Labeled Nodes
Count the distinct binary search trees on keys 1..n by splitting on the root and combining independent subtree counts with dynamic programming.
Dynamic Programmingdynamic-programmingcombinatoricsbinary-search-treecatalan-numbers - Math & Bit ManipulationHardAuto-gradedCan a Starting Pair Grow Into a Goal Pair by Summing Coordinates?
Decide whether a goal pair is reachable from a start pair by replacing one coordinate with the sum of both, using a reverse walk with Euclid-style modulo jumps for values up to 10^9.
Math & Bit Manipulationmatheuclidean-algorithmreverse-thinkingmodulo - Statistics & ExperimentsMediumModel answerMeasuring the True Lift of Propensity-Targeted Upgrade Nudges
Plan an evaluation of push nudges sent to users a model flags as likely to subscribe, covering pre-launch checks, flat-result diagnosis, and alternatives to user-level A/B tests.
Statistics & Experimentsexperimentationcausal-inferenceincrementalityab-testing - Machine LearningMediumModel answerCross-Validation Folds: Choosing k and Spotting Bad Estimates
Describe how k-fold cross-validation works, how the choice of k shifts bias, variance and cost, and which situations make a cross-validated score overly optimistic or unreliable.
Machine Learningcross-validationbias-variancedata-leakagemodel-evaluation - BehavioralHardModel answerRaising a Contested Risk in an AI System: Story and Principles
Describe a time you flagged an ambiguous safety or security risk against delivery pressure, then explain how AI safety principles shape your everyday engineering choices.
Behavioralbehavioralai-safetyrisk-assessmentescalation - Stacks & QueuesMediumAuto-gradedRebuild an Outline Tree from Depth-Tagged Lines
Turn a flat sequence of (depth, label) entries into a nested tree by attaching each entry to its nearest earlier entry with a smaller depth, using a monotonic stack.
Stacks & Queuesstacktree-constructionparsingmonotonic-stack - Statistics & ExperimentsMediumModel answerTesting a Courier Tier Program Under Marketplace Interference
Design an experiment for a courier priority-access program where treated and control couriers compete for the same orders, covering randomization, metrics, spillover analysis, and sample size.
Statistics & Experimentsexperimentationinterferencecluster-randomizationswitchback - Math & Bit ManipulationHardAuto-gradedFewest Presses to Morph One Light Grid Into Another
Find the smallest set of cell presses that turns one on/off grid into another, where each press flips a cell and its neighbours. Tests GF(2) elimination and null-space minimisation.
Math & Bit Manipulationgaussian-eliminationgf2bitmasklinear-algebra - Statistics & ExperimentsHardModel answerShopping Tab Metrics Dashboard and Browse-to-Buy Gap Diagnosis
Design a metrics dashboard for an organic shopping surface, then lay out how to diagnose and experimentally explain why heavy browsing is not turning into purchases.
Statistics & Experimentsproduct-analyticsdashboard-designfunnel-analysisexperimentation - Arrays & HashingEasyAuto-gradedFilter Events per Subscriber with Named Rules
Apply an ordered list of named filter rules to every user-event pair and build a per-user list of qualifying event ids, handling missing prices, empty rule lists and unknown rule names.
Arrays & Hashinghash-mapsimulationfilteringstrategy-pattern - System DesignMediumModel answerBuild a Time-Zone-Safe Scheduling Backend for Recurring Events
Design a scheduling service where users in different time zones create, edit and query one-off and repeating events, with correct behavior across daylight saving changes.
System Designsystem-designcalendartime-zonesrecurrence - Arrays & HashingEasyAuto-gradedLeftmost Column Containing a One in Row-Sorted Grid
Find the leftmost column holding a 1 in a binary grid whose rows are sorted, aiming for a linear-time walk instead of scanning every cell.
Arrays & Hashingmatrixtwo-pointersbinary-matrixstaircase-search - BehavioralMediumModel answerShipping Under Vague Requirements: A Behavioral Walkthrough
Explain how you handled a task with missing requirements: surfacing gaps, sorting reversible from irreversible choices, aligning owners, and tying the result to business goals.
Behavioralbehavioralambiguitystakeholder-managementstar-method - Statistics & ExperimentsMediumModel answerRide-Count Churn Under Random Pricing: Two-Ride Starter
A rider takes two rides on day 1, each fairly priced with probability P. Find the chance of exactly one ride tomorrow and the chance the rider never stops riding.
Statistics & Experimentsprobabilitymarkov-chainabsorbing-statebinomial - Arrays & HashingMediumAuto-gradedWeekly Power-User Share per Country from Impression Logs
Group impression records by country and user over a 7-day window, flag users with 4+ active dates and 3+ surfaces on one date, and report per-country percentages.
Arrays & Hashinghash-mapgroupingsetsdate-handling