practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5971 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.
- 5971
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 121–150 of 3760 results
- System DesignMediumModel answerChoosing Threads, asyncio, or Processes for Python Workloads
Explain how to tell whether a job is limited by computation or by waiting, and how the GIL affects choosing threads, asyncio, or multiprocessing for crawling, parsing, and heavy number work.
System Designpythonconcurrencygilasyncio - Machine LearningHardModel answerDebugging Custom Transformer Encoders and Classification Pipelines
Diagnose subtle implementation errors in PyTorch multi-head attention blocks and build an end-to-end data analysis and model evaluation workflow.
Machine Learningtransformersdeep-learningnlppytorch - BehavioralMediumModel answerKeeping Your Manager and Partner Teams Aligned: A Walkthrough
Explain how you keep your manager and neighboring teams informed, set expectations, surface risks early, and handle disagreements, using a client-facing technical lead example.
Behavioralbehavioralcommunicationstakeholder-managementleadership - Arrays & HashingMediumModel answerWeighted Random Index Sampling and Exclusion Product Array
Implement weighted index sampling with binary search and an exclusion product array without division in O(1) auxiliary space.
Arrays & Hashingarraysbinary-searchprefix-sum - Data Structure DesignMediumModel answerTurn-Based Squad Combat Engine with Deterministic Ordering
Simulate a fight between two squads of monsters with fixed turn order, weakest-first targeting and a damage formula, and return the ordered list of attack events.
Data Structure Designsimulationobject-oriented-designsortingtie-breaking - Machine LearningMediumModel answerBuild Multi-Head Attention in PyTorch Without Library Helpers
Write a multi-head attention module from raw tensor ops: projections, head reshaping, scaled scores, masking, softmax, and output merge, plus cost and testing discussion.
Machine Learningattentiontransformerspytorchmasking - BehavioralMediumModel answerTurnaround Strategy for a Team Facing Low Morale
Demonstrate your engineering leadership by explaining how you identified, diagnosed, and successfully turned around a team suffering from low morale.
Behavioralleadershipengineering-managementteam-culturebehavioral - Statistics & ExperimentsMediumModel answerTesting a Price Hike and a 2x2 Button Experiment
Plan an experiment to judge whether a B2B SaaS price increase pays off, then design and analyze a 2x2 factorial test of button color and position on a sign-up page.
Statistics & Experimentsab-testingpricingfactorial-designinteraction-effects - Statistics & ExperimentsMediumModel answerDoes Training R² Drop When You Add a Noise Predictor?
Decide whether the in-sample R² of an OLS fit can rise, stay flat, or fall when an irrelevant predictor is added, and how adjusted R² and held-out R² differ.
Statistics & Experimentsr-squaredlinear-regressionolsadjusted-r-squared - BehavioralMediumModel answerDescribe Navigating Major Blocks to Achieve a Critical Milestone
Describe a professional situation where you faced severe hurdles while pursuing a crucial objective, detailing your problem-solving process, resolution strategies, and final outcome.
Behavioralbehavioralleadershipproblem-solvingownership - Machine LearningMediumModel answerData Quality Audit for Flight Delay Prediction Models
Perform a comprehensive data quality audit, leakage check, and data contract design for an aviation dataset intended for delay prediction.
Machine Learningdata-qualityfeature-engineeringdata-pipelinesmachine-learning - BehavioralEasyModel answerHandling and Resolving a High-Visibility System Outage
Demonstrate accountability, swift remediation, stakeholder management, and long-term preventions when an operational error impacts users publicly.
Behavioralincident managementleadershipcommunicationpost-mortem - Statistics & ExperimentsHardModel answerLifting a Weak Regression Fit While Keeping Effect Estimates Honest
Plan how to improve a low-R² per-order profit model without corrupting treatment-effect inference: transformations, CV evidence, nested validation, leakage tests, and when low R² is fine.
Statistics & Experimentsregressioncross-validationcausal-inferenceleakage - System DesignHardModel answerBuild a Cluster Scheduler for Generative Video Rendering on GPUs
Design a fault-tolerant scheduler that places multi-node, all-or-nothing GPU jobs for a video generation platform, with topology-aware placement, tenant fairness and checkpoint-based preemption.
System Designgpu-schedulinggang-schedulingpreemptionfair-sharing - System DesignMediumModel answerStreaming Ranking of the Busiest Users Over a Rolling Hour
Design a fault-tolerant stream pipeline that keeps an exact, event-time ranking of the 100 users with the most events in the last 60 minutes, tolerating late data and skew.
System Designstream-processingtop-ksliding-windowkafka - Statistics & ExperimentsMediumModel answerPlanning a Controlled Experiment for a New Signup Journey
Plan a randomized experiment for a revamped first-run experience in a subscription product, size it, monitor it safely, and decide when a gain comes with a rise in support load.
Statistics & Experimentsab-testingexperiment-designsample-sizeguardrail-metrics - BehavioralMediumModel answerFraming Career Transitions and Motivation for Autonomy Software Roles
Learn how to effectively explain job search motivations, company interest, technical background, and past academic choices during technical screening calls for software roles.
Behavioralbehavioralcareer-storytechnical-screeninterview-preparation - Data Structure DesignHardModel answerThread-Safe In-Memory Store and Sliding-Window Counter
Find the concurrency bugs in an in-memory key-value store with expiry and a 300-second hit counter, then fix them with appropriate locking and describe how to test.
Data Structure Designconcurrencyrace-conditionslockingthread-safety - System DesignHardModel answerBuilding a Production Pipeline for Photo Object Recognition
Design a scalable, reliable service that accepts images, runs object-detection models on GPUs, and returns labeled bounding boxes through sync and bulk APIs, with ML lifecycle and operations covered.
System Designml-system-designobject-detectionmodel-servinggpu-inference - System DesignHardModel answerDesign a Real-Time Translation API with Batching
Design an inference backend that aggregates single-sentence translation requests into GPU batches running on a fixed 80 ms execution loop.
System Designsystem-designml-infrastructurebatchinglatency - BehavioralMediumModel answerAnswering "Why Are You Leaving, and Why Us?" Convincingly
Practice a concise, forward-looking answer that explains your move and links your strengths to a specific team, without criticizing your current employer.
Behavioralbehavioralcareer-motivationcommunicationself-awareness - Statistics & ExperimentsMediumModel answerDiagnosing a Conversion Drop After an App-Install Splash Screen
Work out whether an app-install splash screen caused a fall in first-time buyers from partner links, price the install-versus-order trade-off, and design a test to pick keep, change, or remove.
Statistics & Experimentscausal-inferenceab-testingfunnel-analysisdifference-in-differences - System DesignHardModel answerBuilding a Pipeline for Cross-Modal File Vectorization at Scale
Design a multi-tenant service that turns uploaded documents, images and videos into searchable vectors, covering ingestion, inference, storage, dedup, re-embedding, and operations.
System Designml-system-designembeddingsvector-searchgpu-batching - System DesignMediumModel answerBootstrap a Reproducible Python Workspace and Starter Service
Describe how to take a fresh machine to a pinned, secure, fast-feedback Python workspace and prove it works by scaffolding a small tested CLI and HTTP service.
System Designpythontoolingvirtualenvreproducibility - System DesignMediumModel answerArchitect a Multi-Tenant Team Chat Service with Live Delivery
Design a multi-tenant team chat product covering channels, DMs, real-time delivery, history sync, search, and notifications, with per-channel ordering and tenant isolation.
System Designsystem-designreal-timewebsocketssharding - BehavioralMediumModel answerBalancing Risk, Sales and Engineering Demands on a Payments Data Project
Behavioral prompt: tell a STAR story about competing stakeholder priorities in payments analytics, then show your prioritization, messaging, conflict handling and retrospective.
Behavioralstakeholder-managementprioritizationconflict-resolutionstar-method - System DesignHardModel answerBuilding a Type-Ahead Suggestion Service for a Large Search Box
Design a low-latency type-ahead service that returns ranked, personalized, typo-tolerant, multilingual query suggestions while filtering abusive content and protecting user privacy.
System Designsystem-designautocompletetrieranking - BehavioralMediumModel answerTransitioning from Data Analyst to Technology Consultant
Articulate a compelling narrative for transitioning from internal data analytics to client-facing implementation consulting during an interview screen.
Behavioralbehavioralcareer transitionconsultingstakeholder management - Data Structure DesignMediumModel answerBuild a Grouped, Promo-Aware, Sorted Receipt Printer
Extend a cart class that turns scanned item names into a receipt: itemized total, grouping by type, a buy-three-get-two-free deal, then alphabetical ordering.
Data Structure Designobject-oriented-designhash-maprefactoringmoney-arithmetic - Data Structure DesignMediumModel answerLayered REST API for Text Condensing with FastAPI
Design a small FastAPI service that accepts text, returns a placeholder-generated summary, validates input, handles errors, and keeps a bounded in-memory history, using clear layers.
Data Structure Designfastapipythonpydanticrest-api