practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6051 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.
- 6051
- Problems
- 2239
- Auto-graded
- 15
- Topics
- 270
- Added today
Showing 1411–1440 of 6051 results
- Greedy & IntervalsMediumAuto-gradedCollapse Booking Windows into Non-Touching Blocks
Merge inclusive ranges that share at least one point into a sorted list of disjoint ranges, testing sorting, a linear sweep, and correct handling of touching endpoints and nesting.
Greedy & Intervalsintervalssortingsweepgreedy - Data Structure DesignMediumAuto-gradedRate-Limited Dispatcher: Which Requests Fire and When
Simulate a rate limiter with a fixed lockout window that keeps only the newest waiting request, using event-driven processing and a precise rule for requests landing exactly at window end.
Data Structure Designsimulationevent-driventhrottletwo-pointers - System DesignHardModel answerBuilding a Fair-Play System for a Competitive Online Game
Design an end-to-end approach for spotting cheaters in a live multiplayer game, deterring them, and applying penalties while handling wrongful bans and restoring player trust.
System Designanti-cheatfraud-detectiontrust-and-safetystreaming-pipeline - StringsEasyAuto-gradedName the CSS Function for Red-Green-Blue With Optional Alpha
Recall which CSS color function takes red, green and blue channels plus an optional opacity value, and return its canonical name as a string.
Stringscssfundamentalstriviastring-return - Trees & GraphsMediumModel answerBuild a Display Order for Tasks with Dedup, Filtering and Subtasks
Turn a flat batch of scheduler tasks into a display list: merge duplicates, hide finished work, order by priority, and keep each subtask right under its parent.
Trees & Graphssortinghashingtree-traversalcycle-detection - BehavioralMediumModel answerPlan a 14-Day Strategy for a Stalled Team-Match Process
Design a two-week plan to stay visible with recruiters and hiring managers, set escalation triggers, and decide when to widen your search while team matching is stalled.
Behavioralbehavioralstakeholder-managementescalationprioritization - Data Structure DesignMediumAuto-gradedProcess LFU Cache Operations with Frequency and Recency Eviction
Simulate a Least Frequently Used (LFU) cache supporting fast O(1) operations, breaking tie frequencies by least recent usage.
Data Structure Designdesign-dsarrayshash-table - Machine LearningMediumModel answerPyTorch vs JAX: Framework Design and Ecosystem Trends
Discuss where deep learning frameworks are heading, then contrast PyTorch and JAX on execution model, compilation, and ecosystem, and say when you would choose each.
Machine Learningpytorchjaxml-frameworkscompilers - Greedy & IntervalsMediumAuto-gradedLargest Group Anchored by One Overlapping Interval
Find the largest set of intervals that all intersect one chosen anchor interval, using sorting and binary search to beat quadratic time.
Greedy & Intervalsintervalsbinary-searchsortingcounting - Data Structure DesignMediumAuto-gradedRunning Median Tracker Over an Operation Log
Process a log of insert and query operations on an integer stream, returning the current median for each query, using two heaps for efficient updates.
Data Structure Designheaptwo-heapsstreamingmedian - Machine LearningMediumModel answerChoosing an LLM Alignment Recipe for a Support Assistant
Weigh PPO-based RLHF against DPO, use AI-generated feedback when labels are scarce, and diagnose and fix a model that over-refuses harmless requests after alignment.
Machine Learningrlhfdporlaifllm-alignment - Trees & GraphsMediumModel answerDistributed Tree Traversal and Reliable Neighbor Messaging Protocol
Design a reliable message passing protocol across adjacent tree nodes, then compute total network size and discover paths under network faults.
Trees & Graphstrees-graphsdistributed-systemsmessage-passingnetwork-protocol - SQL & DataMediumModel answerLeveraging AI Assistance Responsibly in SQL Collaborative Coding
Learn how to conduct an AI-assisted SQL pair-programming session while demonstrating clear reasoning, strict data safety, step-by-step query construction, and rigorous verification.
SQL & DataSQLPair ProgrammingAI Coding ToolsCode Quality - Trees & GraphsMediumModel answerModeling Classic Puzzles: River Crossing, Jugs, and Proofs
Turn a set of contest-style logic puzzles, led by the fox-chicken-grain river crossing, into formal models, and give algorithms with proofs of correctness and optimality.
Trees & Graphsbfsstate-space-searchinvariantsproofs - System DesignMediumModel answerDesign a Memory-Bounded Real-Time URL Analytics Engine
Architect a memory-efficient system to compute exact all-time and probabilistic 24-hour rolling Top-K URLs from high-velocity web request logs.
System Designsystem-designstreamingdata-structurestop-k - Data Structure DesignMediumAuto-gradedSubscription Filter Matching with Ordered Delivery
Simulate a message router that matches nested JSON events against per-queue filter policies and returns matching queues in first-subscription order.
Data Structure Designdesignhash-mapjsonsimulation - Machine LearningEasyModel answerDeriving and Analyzing Ordinary Least Squares Linear Regression
Explain the mathematical derivation, key theoretical assumptions, numerical considerations, and regularized extensions of ordinary least squares (OLS).
Machine Learninglinear-regressionleast-squaresconvex-optimizationmachine-learning - Machine LearningMediumModel answerScoring Song Impressions: A Click Model for a Music Feed
Design a model that estimates the chance a user clicks a recommended track, covering song representation, sparse feature handling, algorithm choice, calibration, and offline and online evaluation.
Machine Learningctr-predictionrecommendationembeddingssparse-features - Heaps, Sorting & SearchEasyAuto-gradedFind the Slot for a Value in a Sorted List of Distinct Integers
Tests explicit binary search on a sorted array: find a value's index or the position where it would be inserted, in logarithmic time.
Heaps, Sorting & Searchbinary-searchsorted-arrayarraystwo-pointers - Data Structure DesignMediumAuto-gradedPath-Keyed File Store with Per-User Storage Quotas
Simulate a command stream on an in-memory file store with admin and user-owned files, prefix/suffix search, copying, and quota-driven eviction.
Data Structure Designhash-mapsimulationsortingdesign - System DesignMediumModel answerSystemVerilog Verification Fundamentals and Constraint Modeling
Master key SystemVerilog verification concepts including concurrency, constraint solver semantics, assertions, OOP, and hardware verification testbench architectures.
System DesignSystemVerilogUVMHardware VerificationSVA - Arrays & HashingMediumModel answerDistance-to-Go Along Batched 2D Routes
Given a batch of 2D routes, compute for each waypoint the length of the remaining route to the final waypoint, in linear time, handling short and empty inputs.
Arrays & Hashingsuffix-sumnumpyvectorizationeuclidean-distance - System DesignMediumModel answerBuild a Table Booking Platform for Many Restaurants
Design a multi-restaurant table booking backend that prevents double-booking, serves fast availability queries, survives peak-hour spikes, and keeps a full audit trail.
System Designsystem-designconcurrencydata-modelingcaching - System DesignMediumModel answerFast Fan-Out of a 500 GB Checkpoint Across a GPU Fleet
Work out the minimum time to push a 500 GB model checkpoint to 100-1,000 machines with 10 Gbps shared links, then design a chunked peer-to-peer rollout that approaches it.
System Designsystem-designnetworkingpeer-to-peerbandwidth - Trees & GraphsMediumAuto-gradedPrune a Branch from a Parent-Array Forest
Remove a node and its entire subtree from a forest stored as a parent array, either by marking slots with -1 or by compacting indices and remapping parent pointers.
Trees & Graphsforestdfsparent-arrayreindexing - Arrays & HashingMediumAuto-gradedWaiting-Time Triangle Density: Normalize and Evaluate the CDF
Normalize a piecewise-linear triangular density to find its constant, then evaluate the resulting piecewise-quadratic cumulative distribution at a list of query points.
Arrays & Hashingprobabilitycdfpiecewise-functionsintegration - BehavioralMediumModel answerMission-Driven Test Strategy for a Mortgage Platform UI Change
Explain how a housing-finance mission shapes QA work, contrast UI and backend testing, and design a prioritized test suite for a change to a lender-facing form.
Behavioralqatest-designui-testingbackend-testing - SQL & DataMediumModel answerSeven-Day Return Rate from a Daily Posting Log
From a per-day post count table, find each user's first active date, their first-week post total, and the share of users who were active on the seventh day of their life on the platform.
SQL & Datasqlwindow-functionsretentioncohort-analysis - BehavioralMediumModel answerFour Career Stories: Setbacks, Unknowns, Competing Priorities, Critique
Prepare four short, structured work stories covering a hard problem, a decision with missing data, juggling competing priorities, and acting on tough feedback.
Behavioralbehavioralstar-methodownershipprioritization - BehavioralEasyModel answerProduct Data Scientist Recruiter Call: Ten Questions to Prepare
Prepare structured, evidence-backed answers for a recruiter phone screen for a product data scientist role at an e-commerce platform, covering motivation, past scope, PM collaboration and pay.
Behavioralbehavioralrecruiter-screenproduct-data-sciencestakeholder-management