practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6033 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.
- 6033
- Problems
- 2234
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 1081–1110 of 6033 results
- Math & Bit ManipulationEasyAuto-gradedSimple Interest Earned on a Short-Term Loan
Compute the interest earned on a loan using a simple (non-compounding) annual percentage rate prorated over a number of months.
Math & Bit Manipulationmathsimple-interestarithmeticfinance - BehavioralMediumModel answerSenior Behavioral Screen: Success, Conflict, Shifting Mindsets, and Work Culture
Prepare structured responses for four core behavioral themes: impactful execution, handling interpersonal conflict, reconsidering a peer, and identifying key cultural values.
Behavioralbehavioralleadershipconflict-resolutiongrowth-mindset - Math & Bit ManipulationEasyAuto-gradedPricing Two Coin-Editing Tools in a Four-Coin Game
Compute a baseline expected payoff and the fair prices of two coin-editing tools, using linearity of expectation, a parity invariant, and an absorbing-state argument.
Math & Bit Manipulationprobabilityexpected-valueparity-invariantmarkov-chain - Trees & GraphsHardModel answerShortest Hop Count Through a Flaky Web Graph
Crawl a website graph from a start URL to an exit page using BFS, retrying transient 5xx failures a limited number of times, and return the minimum hop count or -1.
Trees & Graphsbfsgraph-traversalretry-logicvisited-set - System DesignHardModel answerDesigning a Distributed MapReduce Data Pipeline
Design a large-scale MapReduce batch execution platform covering task scheduling, shuffle optimization, data skew mitigation, fault recovery, and commit semantics.
System Designsystem-designdistributed-systemsmapreducedata-engineering - Stacks & QueuesMediumModel answerArithmetic String Calculator with Operator Precedence
Compute the integer result of a string holding non-negative numbers, four operators and spaces, honoring precedence and truncating division, without eval and with linear time.
Stacks & Queuesparsingstackstringoperator-precedence - System DesignMediumModel answerSpring Framework vs Spring Boot: What Boot Actually Adds
Explain how Spring Boot relates to the core Spring Framework, covering configuration, auto-configuration, servers, dependencies, startup and when to pick each.
System Designjavaspringspring-bootauto-configuration - Trees & GraphsMediumAuto-gradedFind the Best-Paid Sub-Organization by Mean Pay
Aggregate subtree salary totals and headcounts bottom-up in a tree given as a flat list, then pick the best root using exact average comparison with size and id tie-breaks.
Trees & Graphstreedfspost-ordertie-breaking - Data Structure DesignMediumModel answerModeling a Multi-Car Lift Dispatcher with Swappable Policies
Design an object-oriented lift (elevator) control system: classes, per-car state machine, stop ordering, pluggable dispatch, edge cases, and testable core logic.
Data Structure Designobject-oriented-designstate-machinestrategy-patternsimulation - Data Structure DesignMediumAuto-gradedPrepaid Compute Credit Tracker with Replay-Safe Events
Simulate a per-tenant credit ledger driven by a command list, rejecting overdrafts and repeated event ids while tracking balances in a hash map and a set.
Data Structure Designhash-mapsimulationidempotencydesign - Machine LearningHardModel answerPredicting B2B SaaS Contract Churn After Quality Incidents
Architect an end-to-end machine learning system to estimate customer renewal risk following service instability, covering feature selection, leakage, model tradeoffs, and decision thresholds.
Machine Learningmachine learningchurn predictionfeature engineeringmodel evaluation - StringsMediumAuto-gradedMax Overlap of String Suffix and Prefix
Find the maximum length of a suffix of one string that matches a prefix of another.
Stringsstringskmpprefix-functiontwo-pointers - Stacks & QueuesMediumAuto-gradedExpand Nested Repeat Notation into a Full String
Expand a string containing nested count[text] repeat groups into its full form, using a stack or recursion to parse multi-digit counts and nesting correctly.
Stacks & Queuesstackstring-parsingnested-structuresrecursion - System DesignMediumModel answerStorage, Isolation, Orchestration and Speed: Four Engineering Trade-offs
Answer four fundamentals questions: relational vs NoSQL storage, VMs vs containers, what Kubernetes adds beyond Docker, and why Python lags C++ and how to close the gap.
System Designdatabasesdockerkubernetespython-performance - System DesignMediumModel answerTrending Queries Service: Ranking the Most Frequent Searches
Design a scalable pipeline that ingests a high volume of search events and serves low-latency Top-K rankings, both all-time and over recent sliding windows, across multiple regions.
System Designsystem-designtop-kstreamingcount-min-sketch - Trees & GraphsHardAuto-gradedFewest Planks Across a Portal-Linked Board
Find the cheapest route on a grid with free, paid and blocked cells plus same-numbered teleport cells, which calls for 0-1 BFS and care with teleport expansion.
Trees & Graphs0-1 BFSshortest pathgridgraph modeling - BehavioralMediumModel answerThree Stories on Self-Study, Customer Misses, and Criticism
Prepare three distinct behavioral stories: teaching yourself a skill, missing a goal and recovering through user feedback, and responding well to critical feedback from peers.
Behavioralbehavioralstar-methodfeedbackself-learning - Trees & GraphsMediumAuto-gradedCollect Every Value Stored Under a Key in Nested Data
Walk a nested structure of dicts and lists depth-first and gather every value stored under a given key, in traversal order, including matches inside already-matched values.
Trees & Graphsrecursiondfsjsontraversal - Math & Bit ManipulationMediumAuto-gradedBitwise Quotient Without Multiply, Divide, or Modulo
Compute a truncated 32-bit signed integer quotient using only shifts, addition and subtraction, handling the single overflow case and sign rules efficiently.
Math & Bit Manipulationbit-manipulationmathbinary-searchoverflow - BehavioralMediumModel answerSupporting a Struggling Engineer and Managing Chronic Underperformance
A two-part manager behavioral prompt on supporting an engineer in a rough patch and handling sustained underperformance fairly, plus which case was the hardest and why.
Behavioralbehavioralengineering-managerperformance-managementcoaching - Data Structure DesignMediumAuto-gradedLantern Posts and Open Stretch Checks Along a Highway
Process interleaved insert and query events on sparse integer coordinates, checking whether a symmetric window contains any previously inserted point, using binary search and a Fenwick tree.
Data Structure Designfenwick-treebinary-searchcoordinate-compressionrange-query - System DesignMediumModel answerDesign a Concurrent Low-Latency Logging Library
Architect an in-process, multi-threaded logging framework with non-blocking record hand-off, dynamic log filtering, pluggable formatters, and resilient appender management.
System Designobject-oriented-designconcurrencylow-level-designthread-safety - Heaps, Sorting & SearchMediumAuto-gradedLocate the Lone Value in a Sorted Paired List
Use parity-based binary search on a sorted array of duplicated values to find the one value without a partner in logarithmic time and constant extra space.
Heaps, Sorting & Searchbinary-searchsorted-arrayparityarrays - Math & Bit ManipulationMediumAuto-gradedPick Non-Overlapping Words to Cover the Most Letters
Choose a subset of words with no shared letters so the number of distinct letters covered is maximal, which suits bitmask encoding and subset search.
Math & Bit Manipulationbitmaskbacktrackingsubsetsstrings - System DesignHardModel answerBuild an AI Agent That Triages and Diagnoses Incoming Tickets
Design an LLM-driven agent that triages tickets, gathers operational evidence, proposes a root cause and fix, and acts only within strict human-approval and safety boundaries.
System Designllm-agentsml-system-designincident-responseretrieval - Statistics & ExperimentsMediumModel answerInvestigating a Sudden Drop in Checkout Conversion
Learn how to systematically diagnose, segment, quantify, and resolve a sudden drop in product conversion metrics under time pressure.
Statistics & ExperimentsConversion RateRoot Cause AnalysisFunnel AnalyticsExperimentation - Statistics & ExperimentsMediumModel answerStatistical Comparison of Two Independent Bernoulli Rates
Evaluate whether two independent coin-tossing experiments with different sample sizes show a statistically significant difference in head probabilities.
Statistics & Experimentshypothesis testingproportionsz-testconfidence intervals - System DesignHardModel answerDependency-Aware Boot Orchestrator for a Many-Core Host
Design a scheduler that boots interdependent services on one multi-core machine as fast as possible, handling failures, resource limits, observability, and extension to a cluster.
System Designschedulingdagtopological-sortconcurrency - System DesignMediumModel answerDesign a Sharded Replicated Key-Value Store for 1M Ops/Sec
Design a distributed key-value database serving 1M ops/sec over 50M records with low tail latency, five-nines availability, tunable consistency and durable acknowledged writes.
System Designdistributed-systemskey-value-storereplicationconsistent-hashing - Machine LearningMediumModel answerPriority Inbox and Thread Digests for a Large Webmail Product
Design a low-latency, privacy-preserving system that reorders a user's inbox by importance and attaches faithful LLM-written digests to the most important threads.
Machine Learningml-system-designlearning-to-rankllm-summarizationprivacy