practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6000 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.
- 6000
- Problems
- 2221
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 3211–3240 of 3779 results
- BehavioralHardModel answerBiometric Payment Verification: Risk Framework and Stakeholder Alignment
Design a risk management framework for deploying facial verification at point-of-sale, including regulatory compliance, fairness metrics, and executive pushback strategy.
Behavioralrisk-managementml-governanceprivacystakeholder-management - Trees & GraphsMediumModel answerCompute Direct and Total Network Reach for Each User
Given a list of sponsor–member pairs, return the direct and full downstream unique reach count for every user, handling duplicates, converging paths, and cycles.
Trees & GraphsgraphsBFSreachabilitycycles - System DesignMediumModel answerBuild a Workflow Engine with an AI Coding Assistant
Design, implement, and verify a two-endpoint workflow service—create and execute—in 45 minutes while demonstrating a disciplined plan-then-code loop with an AI assistant.
System Designworkflow-engineai-assisted-codinggraph-executiondependency-ordering - Statistics & ExperimentsEasyModel answerChoose the Right Metric for a Search Ranking Change
Pick and justify a primary success metric for a search ranking A/B test, then identify one guardrail and one counter-metric.
Statistics & Experimentsstatisticsmetric designsearchexperimentation - BehavioralMediumModel answerThread-Safe Maps and Stream Collectors in Java
Compare Java's concurrent map implementations and write a Stream-based method to find the highest-value transaction per trader.
Behavioraljavaconcurrencystreamscollections - BehavioralMediumModel answerPreparing for Automated Behavioral Screening
Structure clear, evidence-based responses to automated screening questions about experience, projects, technical decisions, and workplace collaboration.
Behavioralinterview-prepcommunicationstorytelling - Data Structure DesignHardModel answerAmusement Park Tap-to-Ride: Credits, Surcharges, and Refunds
Simulate a wristband payment system that drains expiring credits before a linked card, applies zone-based surcharges, and splits refunds back across both funding sources.
Data Structure Designsimulationpriority-queuestate-management - Machine LearningMediumModel answerOptimizing ML Models for Different Hardware Platforms
Describe key compiler optimizations for machine learning workloads and how hardware constraints shape which techniques to apply.
Machine Learningml-systemscompilersoptimizationhardware-acceleration - Machine LearningHardModel answerMatrix Cumulative Product with Autodifferentiation
Implement forward and backward passes for cumulative matrix multiplication with correct gradient propagation in an autodiff system.
Machine Learningautomatic-differentiationbackpropagationmatrix-operationscomplexity-analysis - System DesignMediumModel answerDesign a Fleet-Wide Maintenance Orchestrator
Design a system to coordinate safe, rolling maintenance operations across thousands of machines while preserving availability and handling failures.
System Designdistributed-systemsorchestrationstate-managementfault-tolerance - System DesignHardModel answerBuild a Real-Time Query Suggestion Platform
Design a scalable service that returns ranked autocomplete suggestions as users type search queries, handling billions of requests per day with sub-100ms latency.
System Designautocompletelow-latencycachingranking - System DesignHardModel answerThread-Safe Config Registry with Stale-While-Revalidate
Design a ConfigRegistry class that serves configuration to thousands of concurrent threads with lazy loading, stale fallback on failure, and no thundering herd.
System Designconcurrencyreliabilitypythondistributed-systems - BehavioralMediumModel answerNavigating a Technical Disagreement on a Shared Project
Walk through a real disagreement with a teammate, how you handled it, and what the outcome meant for the work and the relationship.
Behavioralconflict resolutionteamworkcommunication - Data Structure DesignMediumModel answerBuild a Fox-and-Geese Turn-Based Grid Game Engine
Model the board state, movement rules, and win conditions for an asymmetric two-player grid game where geese try to reach the far side while foxes hunt them.
Data Structure Designobject-oriented designgame enginesimulationstate machine - Data Structure DesignHardModel answerTiered Cache Manager with Expiry and Weighted Retrieval
Implement a multi-level cache that evicts expired entries, checks tier utilization, and retrieves the highest-weight item from any eligible tier.
Data Structure Designheaplazy-deletionmulti-levelexpiration - System DesignMediumModel answerThread-Safe Memoization: Fixing a Shared Cache for Concurrent Callers
A dict-backed memoization wrapper is called from many threads simultaneously — identify the race conditions and redesign it to be safe without killing throughput.
System Designconcurrencythreadingpythoncaching - SQL & DataMediumModel answerSQL Window Functions: Streaks, Daily Metrics, and Inactivity Gaps
Use window functions to detect consecutive-day activity streaks, compute rolling DAU and revenue metrics, and identify post-order inactivity gaps across three related tables.
SQL & Datawindow-functionsgap-and-islandrolling-aggregatesdate-arithmetic - Statistics & ExperimentsMediumModel answerShould a Restaurant Chain Launch a Plant-Based Patty?
Use unit economics, break-even analysis, and cannibalization math to decide whether a new plant-based menu item is worth launching.
Statistics & Experimentsunit economicsbreak-evencontribution marginproduct launch - Statistics & ExperimentsMediumModel answerResampling Estimators: Confidence Intervals and Variance on a DataFrame
Implement bootstrap percentile confidence intervals and jackknife leave-one-out variance estimation for arbitrary scalar statistics on a pandas DataFrame.
Statistics & Experimentsresamplingbootstrapjackknifepandas - System DesignMediumModel answerDesign a Slot-Filling Ad Service with Frequency Caps
Design a production HTTP API that assigns ads to page slots while enforcing per-user display limits correctly under concurrency and retries.
System Designapi-designconcurrencyidempotencydistributed-systems - System DesignMediumModel answerBootstrap a Reproducible Python Environment for an LLM Project
Walk through pinning a Python interpreter, isolating dependencies with a lockfile, securing API credentials, and verifying the setup with a live smoke test.
System Designpythondev-environmentllmdependency-management - Machine LearningMediumModel answerHandle Class Imbalance in Fraud Detection
Design and evaluate an ML pipeline for detecting rare fraudulent transactions, navigating class imbalance at every stage from data to deployment.
Machine Learningmachine learningclass imbalancefraud detectionevaluation metrics - BehavioralHardModel answerResource Management and Frontend Performance Engineering
Explain Python's resource cleanup patterns, React's rendering model and optimization strategies, and how to debug slow frontend performance in production.
Behavioralpythonreactperformancedebugging - System DesignMediumModel answerBuild a Distributed API Rate Limiter with Per-User Quotas
Design a low-latency distributed rate limiter that enforces different token budgets for different users across a fleet of stateless API gateway nodes.
System Designrate-limitingdistributed-systemscachingredis - Data Structure DesignMediumModel answerFirewall Rule Engine with Prefix Matching
Build a rule-based IP filter supporting CIDR blocks, priority resolution, and efficient queries for single IPs and prefix ranges.
Data Structure Designtrienetworkingbit-manipulation - System DesignMediumModel answerHarden a Two-Step Charge-and-Record Payment Flow
Diagnose every failure mode in a naive charge-then-write endpoint, then redesign it to survive crashes, timeouts, retries, and concurrent duplicates.
System Designidempotencydistributed-systemspaymentsfault-tolerance - System DesignHardModel answerBuild a Request Batching System for LLM Serving
Design an inference service that groups incoming LLM requests into batches, assuming 100ms processing per batch, with attention to queueing, routing, and failure modes.
System Designbatchinginferencelatencythroughput - System DesignMediumModel answerBuilding a High-Throughput Distributed Rate Limiter
Design a multi-region rate limiting system that handles millions of requests per second with low latency while managing hot keys and partition failures.
System Designdistributed-systemsrate-limitingcachingscalability - System DesignHardModel answerDesign a Prompt Editor with Versioning and Collaboration
Build a web app for writing, executing, and versioning LLM prompts with efficient storage for large documents and incremental edits.
System Designdatabase-schemaversioningobject-storagecollaboration - Statistics & ExperimentsMediumModel answerDiagnosing a Spike in Harassment Policy Violations
A monthly moderation report shows harassment violations rising sharply — determine whether the surge is real or a measurement artifact, then design and evaluate a mitigation.
Statistics & Experimentscontent-moderationcausal-inferenceexperiment-designclassifier-evaluation