practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6062 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.
- 6062
- Problems
- 2245
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 1591–1620 of 3817 results
- Arrays & HashingMediumModel answerSimulate Grid Rover Fleet Collision Logic
Simulate the concurrent step-by-step navigation of multiple automated grid rovers, handling collisions, static obstacles, and grid bounds.
Arrays & Hashingarrayssimulationmatrixhash-table - Data Structure DesignMediumModel answerThread-Safe Ledger Accounts with Transfer and Absorb Operations
Design a concurrency-safe Account class supporting deposits, withdrawals, atomic transfers, and absorbing another account, while preventing overdrafts, deadlocks, and operations on closed accounts.
Data Structure Designoopconcurrencylockingdeadlock - System DesignMediumModel answerCustomer Playbook for Unreliable and Slow Data Pipelines
Outline how you would advise a customer whose cloud data platform produces untrustworthy data and runs slowly or expensively: scoping, metrics, diagnosis, fixes, and architecture concepts.
System Designdata-qualitypipeline-performancelakehousesolutions-architect - Math & Bit ManipulationEasyModel answerAxial Tilt and Doubling Money: Two Estimation Questions
Explain the physical cause of hot summers and cold winters, then compute the balance of a $1,000 deposit that earns 100% interest compounded yearly for 20 years.
Math & Bit Manipulationestimationcompound-interestexponential-growthmental-math - Data Structure DesignMediumModel answerObject-Oriented Design for a Multi-Floor Garage Allocator
Design classes and an allocation API for a multi-floor garage that assigns the closest suitable bay to each vehicle, stays correct under concurrent requests, and handles a full garage.
Data Structure Designobject-oriented-designconcurrencyheaplow-level-design - BehavioralMediumModel answerPresent a Past Project: Quick Pitch, Then Technical Deep Dive
Practice describing one significant project in a tight spoken pitch, then defend your decisions, metrics, and communication choices when an interviewer digs deeper.
Behavioralbehavioralproject-deep-diveownershipcommunication - Data Structure DesignMediumModel answerBuild a Three-Stage Signup Wizard with React Reducer State
Design a React wizard with profile, address and review stages, covering validation, guarded navigation, disabled controls, a submit spinner and server error display, plus scaling and performance trade-offs.
Data Structure DesignreactformsuseReducervalidation - Arrays & HashingMediumModel answerSimulate Cascade Board Game Outcome
Simulate a custom board game involving stack placing and directed toppling moves to determine the game outcome.
Arrays & Hashingarrayssimulationmatrix - SQL & DataMediumModel answerRevenue Rollups, a 2x2 Pivot and a VIP Flag in pandas
Join two small tables in pandas, then build channel revenue totals, a member-by-channel pivot, per-state order and buyer counts, and a rule-based high-value flag.
SQL & Datapandasmergegroupbypivot_table - BehavioralMediumModel answerNavigating Critical Technical Trade-offs Under Schedule Constraints
A guide to framing high-stakes engineering decisions, analyzing risk, managing stakeholders, measuring outcomes, and demonstrating retrospective ownership.
Behavioralbehavioraldecision-makingtrade-offsleadership - Machine LearningMediumModel answerFixing and Scaling a Misbehaving CIFAR-10 Training Job
Diagnose a CIFAR-10 PyTorch job that stalls, hits NaNs, or runs slowly, then scale it with FSDP, reason about sparse gradient communication, and decide when custom kernels pay off.
Machine Learningpytorchdebuggingfsdpdistributed-training - SQL & DataMediumModel answerCleaning Account Data in R and Selecting Top Half of Students in SQL
Clean a customer CSV with ordered null-handling rules and compute two averages in tidyverse R, then write one MySQL 8 query returning the top half of students by average grade.
SQL & Datasqlrtidyversewindow-functions - System DesignHardModel answerSpeeding Up a Pillow Photo Pipeline with Workers
Build a per-photo Pillow pipeline that applies a fixed series of edits, then cut wall-clock time with parallelism and justify processes vs threads and the worker count.
System Designpythonpillowmultiprocessinggil - BehavioralMediumModel answerNarrating Your Career and Standout Project as a Data Engineer
Deliver a structured walkthrough of your career as a data engineer, covering each role's scope, impact, and transitions, then a deep dive on your proudest project and a candid retrospective.
Behavioralbehavioraldata-engineeringstorytellingstar-method - System DesignMediumModel answerDeadline-Aware Task Dispatcher with Dependencies and Leases
Build a task dispatcher that serves the earliest-deadline runnable task, handles prerequisites, and grows into a fault-tolerant multi-worker service.
System Designschedulerpriority-queuetopological-sortdistributed-systems - System DesignMediumModel answerScheduling Collision Detection for a Shared Calendar Service
Design the backend that detects and handles scheduling collisions when users create or edit events, covering recurrence, attendees, privacy, time zones, and concurrent edits at massive scale.
System Designsystem-designcalendarconflict-detectionrecurrence - Statistics & ExperimentsMediumModel answerDesigning a Success Framework for a Third-Party App Marketplace
Build a measurement system for a merchant-and-developer app marketplace: north-star metric, per-side metrics, guardrails, required tables and joins, and how to test ranking changes.
Statistics & Experimentsproduct-metricsmarketplacenorth-star-metricguardrail-metrics - BehavioralMediumModel answerPitching Your Quant Background for a Macro Fund Screening Call
Prepare a tight, story-driven set of answers covering your background, internships, motivation for the buy side, a specific fund, and personal character in a short recruiter screen.
Behavioralbehavioralself-introductionmotivationSTAR - Trees & GraphsMediumModel answerCollect Every Reachable Page on a Single Host
Write a function that explores a website from one starting URL, following only links on the same hostname, and returns each distinct page once while coping with link cycles.
Trees & Graphsgraph-traversalbfsurl-normalizationdeduplication - Machine LearningHardModel answerForecasting Next-Day Energy Use Across Commercial Buildings
Design a full forecasting pipeline for next-day electricity use across many commercial buildings, from features and validation through deployment, monitoring, privacy and an ablation study.
Machine Learningtime-seriesregressionfeature-engineeringmlops - Machine LearningHardModel answerDefend a Tabular ML Project: Validation, Tuning, PCA, SHAP
Walk through one supervised ML project end to end, covering leakage, time-aware validation, feature choices and tuning, then derive PCA and explain SHAP and its pitfalls.
Machine Learningpcashapleakagetime-series-validation - BehavioralMediumModel answerTalking About Your AI Tool Habits and a Time They Paid Off
Answer two behavioral questions about how you use AI tools in engineering work and about one concrete case where they made you or your team faster, including verification and data limits.
Behavioralbehavioralai-toolsproductivitystar-method - System DesignHardModel answerShared Storage Allowance Service Across Many Products
Design a globally consistent service that tracks one storage allowance per user across several products, guaranteeing usage never exceeds the limit while staying fast and available.
System Designsystem-designdistributed-systemsconsistencyidempotency - Machine LearningMediumModel answerDesigning LLM-Generated Daily Briefs for Perishable Goods Logistics
Design a pipeline that adds LLM-written narrative insights to existing supply-chain reports while keeping numbers exact, data secure, and outputs verified before delivery.
Machine Learningllmraggroundingevaluation - Data Structure DesignMediumModel answerStrong vs Weak Counts in shared_ptr and How weak_ptr Breaks Cycles
Describe the two reference counts in a shared_ptr control block, how weak_ptr uses them, why lock() is needed, and how a weak back-edge fixes a leaking ownership cycle.
Data Structure Designcppsmart-pointersshared_ptrweak_ptr - System DesignMediumModel answerArchitect a Scalable Storage Cluster for Huge Files Across Many Machines
Design a cluster-based file storage system from a vague prompt, defining workload, guarantees and scale first, then covering metadata, data placement, I/O paths and failure handling.
System Designdistributed-systemsstoragereplicationmetadata - Machine LearningMediumModel answerSelf-Attention Deep Dive: Q, K, V Roles and Transformer Design Trade-offs
Explain how self-attention builds queries, keys and values, what the value vectors do, and why Transformers handle long-range context better than recurrent models.
Machine Learningtransformersself-attentionqkvmulti-head-attention - System DesignMediumModel answerBuild a Real-Time Ad Decision Service with Spend Controls
Design a backend that picks one ad per page slot within a strict latency limit, logs views and clicks for billing, and keeps campaign spend within budget and spread across the day.
System Designsystem-designad-servinglow-latencybudget-pacing - Greedy & IntervalsMediumModel answerReal-Time Courier-to-Delivery Matching Engine Design
Design a scalable real-time engine that matches couriers to incoming delivery requests, defining the cost model, candidate pruning, matching method, complexity, and failure handling.
Greedy & Intervalsmatchinggreedyspatial-indexreal-time - System DesignHardModel answerBuilding a Fault-Tolerant HTTP Traffic Distribution Layer
Design a resilient, horizontally scalable HTTP/HTTPS traffic distribution tier that routes by path or header, tracks backend health, and survives node and control-plane failures without dropping connections.
System Designload-balancinghigh-availabilitylayer-7health-checks