practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6005 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.
- 6005
- Problems
- 2225
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 661–690 of 3780 results
- Machine LearningEasyModel answerFive ML Concepts: Gradients, Penalties, Dropout, Similarity, Encoding
Answer five conceptual ML questions covering loss gradients, L1 vs L2 penalties, activations and dropout, cosine vs Euclidean similarity, and encoding high-cardinality categorical features.
Machine Learningloss-functionsregularizationdropoutcosine-similarity - Data Structure DesignMediumModel answerReversible Edit History for a Formula-Driven Grid
Design a command-based history for a spreadsheet that undoes and redoes cell edits, row deletions and batches, recomputes dependent formulas, handles irreversible actions, and bounds memory.
Data Structure Designcommand-patternundo-redomementodependency-graph - System DesignMediumModel answerSecure Shared Analytics Service for Many Enterprise Customers
Design a shared analytics service where enterprise customers run SQL on their own datasets with strict isolation, attribute-based access rules, tamper-evident auditing and erasure support.
System Designmulti-tenancyabacaudit-loggingdata-lineage - Machine LearningMediumModel answerGroup-Based Policy Optimization for LLM Fine-Tuning vs PPO
Describe how group-relative policy optimization trains a language model from scored samples without a critic, how it compares with PPO-based RLHF, and where it breaks.
Machine Learningreinforcement-learningllmgrpoppo - SQL & DataMediumModel answerPower Sellers and Vehicle Share of New US Listing Engagement
Two SQL tasks on a marketplace: count sellers with many well-engaged products in a short window, and compute the Vehicle share of interactions on newly created US listings.
SQL & Datasqljoinsaggregationsnapshot-tables - BehavioralMediumModel answerBridging Into a Spreadsheet-Driven Pricing Analyst Role
Explain how you would show you can succeed as a pricing analyst without direct pricing experience, working mostly in shared spreadsheets, including governance and when to move off them.
Behavioralbehavioralpricing-analyticsgoogle-sheetsgovernance - Machine LearningMediumModel answerDesigning a Ranking and Exploration Pipeline for Fresh Ad Campaigns
Design an ML system that ranks and safely explores ads under one week old with little click or conversion history, while keeping auction pricing, user experience and advertiser pacing intact.
Machine Learningcold-startads-rankingthompson-samplingcalibration - System DesignMediumModel answerArchitecting a Payment Gateway with Real-Time Authorization and Batch Settlement
Design a robust payment architecture that handles real-time authorization holds, deferred batch captures, and safe retries without double-charging users.
System Designsystem-designpayment-processingidempotencyeventual-consistency - Machine LearningHardModel answerDesigning a Feed Ad Recommendation and Ranking Engine
Architect an end-to-end Machine Learning ad recommendation system for a content feed, balancing ad revenue with user experience, delayed feedback, counterfactual evaluation, and budget pacing.
Machine Learningrecommender-systemsrankingctr-predictionmulti-task-learning - System DesignMediumModel answerElimination Quiz Arena: Scalable Live Game Backend Design
Design a backend for elimination-style live quiz games with many players per room, fair timing, crash recovery mid-round, and spectator traffic kept away from gameplay.
System Designsystem-designreal-timewebsocketssharding - System DesignHardModel answerDesign a Real-Time Multiplayer Matchmaking Service
Design a scalable, low-latency matchmaking architecture capable of handling millions of players across diverse modes while keeping matches balanced, fast, and crash-resilient.
System Designsystem-designdistributed-systemsgaminglow-latency - Machine LearningHardModel answerRater Reliability Metrics and Validating an LLM Grader
Explain how to quantify labeler reliability beyond raw agreement, when each metric fails, and how to decide whether an LLM can stand in for human graders.
Machine Learninginter-annotator-agreementcohens-kappakrippendorff-alphallm-as-judge - BehavioralHardModel answerDeciding Whether to Pause or Ship a Powerful but Poorly Understood AI System
Discuss how to decide between further research, limited testing, and broad release of a powerful AI system with unknown risks, and how rivals who may not wait change that reasoning.
Behavioralai-safetydecision-makingethicsleadership - Machine LearningMediumModel answerWalking Through a Vision-Language Model Build, Start to Finish
Present a vision-language model you built, covering scope, architecture, data, training, modularity, serving latency, and failure modes, with consistent numbers and clear trade-offs.
Machine Learningvision-language-modelsmultimodalllm-traininginference-latency - System DesignMediumModel answerBackend Fundamentals: GIL, PUT vs PATCH, Cyclic GC, Lock Ordering
Answer four backend fundamentals for a payments service: Python concurrency and the GIL, PUT/PATCH with optimistic locking, CPython garbage collection, and deadlock avoidance.
System Designpythongilhttpoptimistic-concurrency - System DesignHardModel answerBuild a Pausable GPU Workspace Platform for Research Teams
Design a service that hands out isolated, GPU-backed Jupyter-style workspaces that can be started, paused, and resumed on any host without losing files or packages, while controlling idle GPU spend.
System Designsystem-designgpu-schedulingpersistent-storagelifecycle-management - Machine LearningMediumModel answerImplement a Decoder-Only Autoregressive Transformer
Write PyTorch components for a decoder-only GPT model, specifying tensor shapes and handling causal masking, multi-head attention, and block architecture.
Machine Learningtransformersdeep-learningpytorchnlp - Statistics & ExperimentsHardModel answerGeometric Sessions, A/B Sizing, and Bootstrap on Skewed Engagement
Four linked statistics questions: geometric session probabilities, two-proportion sample sizing, why a t-test and bootstrap CI disagree on skewed data, and a ship/no-ship recommendation.
Statistics & Experimentsgeometric-distributionsample-sizeab-testingbootstrap - Statistics & ExperimentsMediumModel answerTwo-Arm Booking Uplift: Significance, Day Clustering, and Sizing
Analyze a one-week A/B test on booking conversion: run an unpooled z-test, apply an ICC design-effect correction, size a follow-up test, and plan heterogeneity checks.
Statistics & Experimentsab-testingtwo-proportion-z-testdesign-effecticc - BehavioralMediumModel answerOwning a Decision Built on Faulty Metrics
Prepare a behavioral answer about acting on flawed or misleading data: how you found the problem, what it cost, how you recovered, and which lasting safeguards you put in place.
Behavioralbehavioralownershipdata-qualityleadership - Data Structure DesignHardModel answerHardening a Coalescing TTL Cache: Failures, Invalidation, Eviction
Review a promise-coalescing TTL cache in TypeScript, find its failure, invalidation and memory bugs, write a fixed version, and explain how to port it safely to multithreaded C++20.
Data Structure Designasynccacherace-conditionslru - System DesignHardModel answerBuilding an Asynchronous Job Platform for LLM Requests
Design an asynchronous backend that accepts LLM requests, queues and routes them fairly, runs them reliably, and returns results, with cost, security and SLA controls.
System Designsystem-designllm-servingjob-queueidempotency - System DesignMediumModel answerBuild a Real-Time Multi-User Document Editing Platform
Design a platform where many people edit one document simultaneously, covering merge rules, live streaming, durable history, reconnect, and periodic Git checkpoints.
System Designsystem-designcollaborationcrdtoperational-transform - Machine LearningEasyModel answerML Fundamentals: Generalization, Contrastive Embeddings, Attention
Explain how to diagnose and curb overfitting, how contrastive pretraining and its loss shape embeddings, and how a transformer block works.
Machine Learningoverfittingcontrastive-learninginfoncetransformers - System DesignHardModel answerBuild a Delayed-Task Platform with a Fast Status Cache
Design a distributed platform that runs delayed and immediate background tasks with retries and durable state, plus a cache that serves task status in under 10 ms at 10k requests/second.
System Designsystem-designjob-queuecachingidempotency - Trees & GraphsMediumModel answerTwo Warm-Ups: One-Deletion Palindrome and Column-Grouped Tree Output
Decide whether a string becomes a palindrome after removing at most one character, then group a binary tree's node values by column using level-order tie-breaking.
Trees & Graphstwo-pointerspalindromebfsbinary-tree - BehavioralMediumModel answerMaking the Case for Working Across the Whole Stack
Explain in an interview why you want a full-stack role rather than a frontend-only or backend-only one, using motivation, the problems you enjoy, and how breadth helps products and teamwork.
Behavioralbehavioralmotivationfull-stackcommunication - Statistics & ExperimentsEasyModel answerValidating Autonomous Vehicle Simulations Against Real-World Sensor Logs
Design a statistical and domain-specific evaluation framework to determine if a simulated driving environment realistically captures vehicle behavior and physical edge cases.
Statistics & ExperimentsA/B TestingDistribution ComparisonAutonomous VehiclesHypothesis Testing - Data Structure DesignMediumModel answerBuild an In-Memory Price History Store with One-Shot Updates
Design a per-symbol price store supporting lookups, custom change formulas, atomic range updates that can touch each slot only once, and a switch from daily to hourly data.
Data Structure Designdata-structure-designtime-seriesatomic-updateshash-map - System DesignEasyModel answerPinpointing a Storage Bottleneck on a Slow Production Host
Walk through how to confirm whether disk I/O is slowing a service, find which process drives it, characterize the workload, and propose measured fixes.
System Designlinuxperformanceiostatstorage