practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6089 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.
- 6089
- Problems
- 2257
- Auto-graded
- 15
- Topics
- 277
- Added today
Showing 2041–2070 of 6089 results
- Heaps, Sorting & SearchMediumModel answerDesign and Analyze an Intentionally Inefficient Correct Sorting Algorithm
Propose a fully correct yet highly inefficient sorting algorithm, prove its termination and correctness, and derive its time and space complexity.
Heaps, Sorting & Searchsortingcomplexity-analysiscombinatoricsrecursion - Heaps, Sorting & SearchMediumAuto-gradedWeighted Distribution Sampling from Uniform Draws
Validate probability weights and map pre-generated uniform float values to discrete outcomes using prefix sums and binary search.
Heaps, Sorting & Searcharraysbinary-searchmathvalidation - Greedy & IntervalsEasyAuto-gradedSummarize Integer Ranges into String
Process an unorganized array of integers by sorting, deduplicating, and formatting contiguous numerical ranges into a compact string.
Greedy & Intervalsarrayssortingintervalsstrings - BehavioralMediumModel answerExplain a Core Technical Concept to a Junior Engineering Mentee
Demonstrate technical mastery, audience adaptation, and structured communication by explaining database indexing or async programming to a junior colleague.
Behavioraltechnical communicationmentorshipsystem design fundamentalsdatabase indexing - Trees & GraphsEasyAuto-gradedCollect Every File Path from a Nested Directory Tree
Traverse a nested directory dictionary depth-first and build the full slash-joined path for each file, following precise joining and ordering rules.
Trees & Graphsdfstree-traversalrecursionstrings - Arrays & HashingMediumAuto-gradedPer-Unit Coupon Pricing with Half-Even Cent Rounding
Total a shopping cart where each coupon discounts one unit of its item, with percent discounts rounded half-to-even in exact integer arithmetic.
Arrays & Hashinghash-mapsimulationroundinginteger-math - BehavioralMediumModel answerPresenting Your Top Engineering Accomplishment
Learn how to structure and present your most impactful technical project in a machine learning or systems engineering interview using the extended STAR framework.
Behavioralbehavioralleadershipproject-walkthroughtrade-offs - BehavioralMediumModel answerDefending Ownership of Your Current Project in an Interview
Explain the project you currently drive in clear terms, then show with concrete decisions, risks and accountability why you act as its owner and not simply a contributor.
Behavioralbehavioralownershipleadershipproject-narrative - Statistics & ExperimentsHardModel answerEvaluating Short-Form Video Integration into a Social Newsfeed
Define a framework to measure impact, set up metrics and guardrails, design an A/B test, and mitigate network interference when adding short videos to a newsfeed.
Statistics & ExperimentsA/B TestingProduct MetricsNetwork EffectsSystem Design - Data Structure DesignMediumModel answerDesigning Dynamic Load Balancers: Round-Robin and Consistent Hashing
Implement a resilient round-robin request balancer that handles dynamic server membership, followed by a consistent hashing router to maintain key affinity.
Data Structure Designdesign-dshashingconcurrencybinary-search - System DesignHardModel answerDesigning a Scalable Mixed-Latency Multi-Tenant Workflow Engine
Architect a multi-tenant orchestration engine handling high-throughput fast I/O tasks alongside long-running LLM tasks with tenant fairness and tiered state storage.
System Designsystem-designdistributed-systemsqueuesstorage-architecture - SQL & DataEasyModel answerPivot Quarterly Crypto Sales and Yearly Totals in SQL
Write an efficient SQL query to aggregate quarterly activity and overall yearly stats per cryptocurrency, preserving coins with zero transactions.
SQL & Datasqlaggregationjoinspivoting - System DesignHardModel answerDesigning Asynchronous Systems: Queues, NoSQL Stores, and Concurrency
Analyze message queues, delivery semantics, push vs. pull models, NoSQL vs. relational databases, and distributed concurrency controls including deadlock resolution.
System Designsystem-designmessage-queuesnosqlconcurrency - BehavioralMediumModel answerWalk Through Your Most Impactful Engineering Projects
Present a past software project end to end: the problem, your ownership, key decisions, obstacles, success metrics, results and lessons learned, in a structured and defensible way.
Behavioralbehavioralproject-deep-diveownershipimpact-metrics - System DesignHardModel answerDesign a Cloud IDE System for Browser-Based Code Execution
Architect a cloud-based development environment enabling real-time browser code editing, interactive terminal streaming, sandboxed execution, and workspace state persistence at scale.
System Designsystem-designcloud-idesandboxingwebsockets - Statistics & ExperimentsMediumModel answerSizing Sydney's Flower Shops and Quoting a Market on the Count
Estimate how many walk-in florist shops are in Greater Sydney using two independent methods, quote a bid/ask on the count, then revise after a trade and a partial registry count.
Statistics & Experimentsfermi-estimationmarket-makingbayesian-updatingadverse-selection - Trees & GraphsMediumModel answerBuild a Collapsible JSON Tree Renderer in React
Design and implement a React component to display nested JSON with collapsible nodes, indentation, and syntax highlighting for primitive types.
Trees & GraphsReactJSONTreeFrontend - Statistics & ExperimentsMediumModel answerFlash-Sale Order Burst: Triage, Decision Policy and Safer Promos
Triage a suspicious burst of flash-sale orders, set priced approve/hold/reject rules under chargeback and review-capacity limits, then redesign the promo and plan a safe rollout.
Statistics & Experimentsfraud-analyticsdecision-thresholdscost-matrixexperiment-design - Math & Bit ManipulationMediumAuto-gradedAggressive Wagering: Chance of Hitting the Goal Before Going Broke
Model a state-dependent betting strategy as a Markov chain and solve absorption probabilities, including cycles, via a linear system.
Math & Bit Manipulationprobabilitymarkov-chainlinear-algebragaussian-elimination - Arrays & HashingEasyAuto-gradedCompute Post-Match Standardized Mean Differences
Evaluate post-matching covariate balance by computing the absolute standardized mean difference across features.
Arrays & Hashingstatisticsmath-bitsarrays - Math & Bit ManipulationEasyAuto-gradedCalculate Product Mix Profitability Metrics
Computes baseline and mix-shifted unit profit averages, per-unit margin delta, and overall impact on profit given total volume.
Math & Bit Manipulationmatharrays - System DesignMediumModel answerDesigning a High-Throughput Order Management & Execution System
Design a scalable retail brokerage order management system handling limit/market orders, cancellations, concurrency-safe account balances, and edge cases like lost/duplicate fill reports.
System Designsystem-designdistributed-systemsconcurrencyfintech - Data Structure DesignMediumAuto-gradedBanned-Word Review Screener with Per-User Strike Counts
Simulate a stateful screening service driven by an operation log: whole-token, case-insensitive banned-word checks, replaceable word lists, and per-user flagged-review tallies.
Data Structure Designhash-sethash-mapsimulationstrings - Arrays & HashingEasyAuto-gradedRollout Impact: Diff-in-Diff Estimate with Baseline Drift Check
Aggregate per-group, per-window means from daily records, compute a difference-in-differences estimate, and flag baseline drift between two pre-period sub-windows.
Arrays & Hashinghashingaggregationstatisticsdate-windows - System DesignMediumModel answerDesign and Implement a 2x3 React Post Grid with API Integration
Build a 2x3 React grid component for display feeds, integrate data loading with proper state management, and explain React hook mechanics.
System Designreactfrontendcss-gridhooks - Data Structure DesignMediumModel answerRefactoring and Hardening a Driver Dispatch Service
Identify anti-patterns in legacy dispatch assignment code, implement fixes, introduce domain types, and design for thread-safety.
Data Structure Designrefactoringthread-safetyobject-oriented-designclean-code - Statistics & ExperimentsHardModel answerBuilding a Fair Scorecard for Last-Mile Couriers
Design a measurement system that evaluates couriers fairly across very different routes and conditions, going beyond raw parcel counts and elapsed time.
Statistics & Experimentsmetrics-designnormalizationmixed-effects-modelsfairness - System DesignMediumModel answerDesign a Real-Time Driver Tracking and Nearby Location Service
Architect a low-latency ingestion and spatial indexing system for tracking real-time vehicle locations and serving proximity queries at high scale.
System Designsystem-designgeospatialin-memory-databasestream-processing - System DesignHardModel answerDesign a Collaborative LLM Prompt Workbench with Live Streaming
Design a multi-tenant web tool where teams author prompts, run them on external LLMs with streamed output, version and compare results, and track cost, latency, and safety.
System Designsystem-designstreamingmulti-tenancyidempotency - Heaps, Sorting & SearchMediumAuto-gradedDetermine the K-th Highest Score in an Unsorted Array
Find the k-th largest value in an unsorted array of integers without fully sorting the input.
Heaps, Sorting & Searcharrayssortingdivide-and-conquerquickselect