practice a little every day — you've got this ♡
Interview Practice Problems
Practice 5978 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.
- 5978
- Problems
- 2214
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 211–240 of 5978 results
- Math & Bit ManipulationMediumModel answerRunners Dodging Bouncing Sentries Along a Track
Count how many runners, released one per time unit, cross a track without ever sharing a cell at the same integer time with a sentry that bounces back and forth inside a fixed range.
Math & Bit Manipulationsimulationmodular-arithmeticperiodic-motionparity - BehavioralMediumModel answerResolving a Deep Disagreement With a Close Collaborator
Tell a story about a substantive technical or strategic clash with a trusted colleague, covering how you understood their view, how the decision was made, and how the relationship held up.
Behavioralbehavioralconflict-resolutiondisagree-and-commitcollaboration - BehavioralMediumModel answerBackend Leadership Interview: Reliable Systems, Reversals, and Pushback
A four-part behavioral practice round for senior backend engineers covering a flagship project with idempotency and SLA depth, a reversed decision, a challenged design, and motivation.
Behavioralbehavioralidempotencyslasenior-backend - System DesignMediumModel answerDesigning a Safe Card-Charging Flow with Retries and Storage
Design a backend flow for charging customers through an external payment provider so no one is billed twice and no payment is lost, then pick what to persist and which database to use.
System Designidempotencypaymentsretriesdatabase-design - Math & Bit ManipulationEasyModel answerInvert Bit at Specific Index
Invert the bit at a given index in a non-negative integer using bitwise operations.
Math & Bit Manipulationmath-bitsbit-manipulationmath - 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 - StringsMediumAuto-gradedFewest Letter Swaps to Rearrange One Word Into Another's Letters
Count letter frequencies in two equal-length strings to find the fewest in-place letter replacements that make the second string an anagram of the first.
Stringsstringshash-mapfrequency-countinganagram - 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 - Greedy & IntervalsMediumAuto-gradedOpen Half-Hour Slots from Weekly Hours and Bookings
Expand a weekly schedule over a date range and subtract booked intervals to list every free, half-hour-aligned 30-minute slot in chronological order.
Greedy & Intervalsintervalsdatetimesimulationsorting - StringsEasyAuto-gradedMirror Check Ignoring Punctuation and Letter Case
Check whether a string is a palindrome when only letters and digits count and case is ignored, using two pointers with constant extra space.
Stringstwo-pointersstringspalindrome - 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 - Arrays & HashingEasyAuto-gradedLedger Replay Cleanup: Apply Each Payment Event Once
Process a stream of possibly redelivered payment events and compute final account balances by applying each unique event ID only once.
Arrays & Hashinghash-sethash-mapdeduplicationsimulation - Data Structure DesignMediumAuto-gradedRanking Frequent Event Names Within a Time Window
Simulate a stream of timestamped log events and answer window queries for the k most frequent messages, with ties broken alphabetically, using binary search over a sorted log.
Data Structure Designdesignbinary-searchhash-mapsorting - 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 - Heaps, Sorting & SearchMediumAuto-gradedGreedy Tile Placement Across Parallel Lanes
Simulate placing items one by one into the currently lowest lane, breaking ties by lowest index, and report each lane's final total using a min-heap.
Heaps, Sorting & Searchheapgreedysimulationpriority-queue - Trees & GraphsMediumAuto-gradedMinimum Rides Across Circular Shuttle Lines
Find the fewest shuttle lines to board to get from one stop to another, using a graph search over lines and a stop-to-lines index to stay linear in total stops.
Trees & Graphsbfsgraphhash-mapshortest-path - 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 - Greedy & IntervalsMediumAuto-gradedCanonical Path Cleanup Plus Overlapping Range Union
Combine stack-based Unix path normalization with sort-and-sweep merging of overlapping or touching closed ranges, returning both results in one list.
Greedy & Intervalsstacksortingintervalsstrings - Arrays & HashingMediumAuto-gradedShortest Total Flight on a Circular Track of Stations
Sum the shortest arc distances between consecutive stops on a ring with weighted edges, using prefix sums for O(1) arc queries.
Arrays & Hashingprefix-sumcircular-arraysimulation - 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