practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6000 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.
- 6000
- Problems
- 2221
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 571–600 of 6000 results
- Trees & GraphsMediumAuto-gradedTallest Chain of Nodes in an Index-Linked Binary Tree
Compute the height of a binary tree given as a child-index table, handling empty input and very deep skewed trees without recursion failures.
Trees & Graphsbinary-treedfsiterative-traversaltree-height - StringsMediumAuto-gradedTightest Segment Covering a Required Letter Multiset
Find the shortest contiguous piece of a text that includes all letters of a target, with repeats and case mattering, using a sliding window with counts and earliest-start tie-breaking.
Stringssliding-windowtwo-pointershash-mapstrings - Data Structure DesignMediumAuto-gradedBatch Word and In-Order Phrase Lookup Over Text Documents
Build an inverted index with token positions to answer whole-word and in-order phrase queries over documents, handling repeated words and punctuation.
Data Structure Designinverted-indexhash-mapbinary-searchtokenization - BehavioralMediumModel answerDefending Your Biggest Project Under Repeated "Why" Questions
Prepare to walk through one or two significant past projects in depth, showing technical judgment, cross-team influence, ownership, and a mature approach to feedback and design reviews.
Behavioralbehavioralproject-deep-diveownershipleadership - System DesignMediumModel answerArchitecting a Durable, Always-On Object Store at Scale
Design a horizontally scalable object storage service with buckets, keys, and huge blobs, covering metadata, placement, durability, consistency, large uploads, security and operations.
System Designobject-storagedistributed-systemsreplicationerasure-coding - Machine LearningMediumModel answerBuild a Personalized Swipe-Feed Ranking Pipeline for Clips
Design an end-to-end ML recommender for a vertical clip feed with multi-stage retrieval and ranking, real-time learning, diversity and safety controls, and cold-start handling.
Machine Learningrecommendation-systemsml-system-designretrieval-and-rankingcold-start - BehavioralMediumModel answerBuild a Story Portfolio and One Flagship Project Deep Dive
Prepare a set of short stories showing problem-solving, teamwork, and leadership, plus one detailed account of a project you drove from start to finish, covering obstacles and measurable outcomes.
Behavioralbehavioralleadershipstar-methodproject-deep-dive - Machine LearningMediumModel answerEnterprise Data Asset Retrieval for Autonomous Coding Agents
Design a multi-stage retrieval system that surfaces the right database tables and analytical notebooks for an internal AI coding assistant answering data queries.
Machine LearningInformation RetrievalRAGSystem DesignML System Design - StringsEasyAuto-gradedOrdered Symbol Tally by First Occurrence
Count how often each character occurs in a string and report the tallies in the order the characters first appear, treating every character as distinct and significant.
Stringshash-mapstringcountingordered-dict - Heaps, Sorting & SearchMediumAuto-gradedBatched Binary Search with Query Caching
Evaluate efficient sorted array lookups for repetitive queries using binary search combined with memoization.
Heaps, Sorting & Searchbinary-searcharraysmemoizationhashing - System DesignHardModel answerTracing a 4 GiB Allocation, Swap Stalls, and the Cost of Inlining
Walk through how a huge allocation becomes virtual and physical memory on Linux, why swap hurts tail latency, and what C++ inline means for linkage and the CPU.
System Designoperating-systemsvirtual-memorylinuxcpp - Statistics & ExperimentsEasyModel answerCorrecting Size-Biased Sampling to Estimate Daily Guest Totals
Estimate total guests who show up across all reservations from a sample drawn proportionally to party size, correcting the bias and giving a confidence interval.
Statistics & Experimentssize-biased-samplinginverse-probability-weightingsurvey-samplingconfidence-interval - Statistics & ExperimentsMediumModel answerInvestigating a Weekly Drop in Created Items and Testing a Suggestion Feature
Diagnose a 15% weekly drop in a creation metric after a partial feature rollout, then design a cluster-randomized A/B test that handles shared-workspace interference.
Statistics & Experimentsab-testingmetric-investigationnetwork-effectscluster-randomization - BehavioralMediumModel answerPresent a Risk Modeling Project to a Non-Technical Screener
Practice turning a past risk modeling project into a short, business-focused story that shows your ownership, sound modeling judgment under regulation, and measurable results.
Behavioralbehavioralrisk-analyticsstorytellingstar-method - SQL & DataMediumModel answerFiltering Merchants by Chargeback Rate: Row vs Group Filters
Find merchants whose 30-day chargeback rate exceeds 0.5% and explain why the rate filter belongs after grouping, plus dialect quirks and performance implications.
SQL & Datasqlgroup-byhavingaggregation - Dynamic ProgrammingMediumAuto-gradedProbability of Adjacent Car Groups in a Random Parking Row
Count placements of k items in n slots with at least m maximal runs of length 2 or more, using a counting DP or combinatorics, and return the exact probability.
Dynamic Programmingcombinatoricsprobabilitydynamic-programmingcounting - SQL & DataMediumModel answerPandas Activity Metrics: Local Dates, Rolling Windows, Retention
Build daily active users, rolling averages, per-user rolling counts and week-over-week retention from a UTC event log, using timezone-correct, vectorized Pandas.
SQL & Datapandastime-seriesgroupbyrolling-window - System DesignHardModel answerBuilding an Outbound Voice Dialer That Survives Campaign Bursts
Design a multi-tenant service that places API-driven phone calls through carriers with hard channel and CPS limits, stays fair under bursts, and tracks call state reliably.
System Designsystem-designqueueingbackpressurerate-limiting - Greedy & IntervalsMediumAuto-gradedShift Tracker and Earnings Simulator
Simulate employee shifts, structural updates, bonus intervals, filtering, and time-bounded payroll computations.
Greedy & Intervalsdesignsimulationintervalssorting - Machine LearningMediumModel answerDesigning and Deploying an End-to-End ML Pipeline
Walk through an end-to-end machine learning project lifecycle, covering framing, architecture, validation, monitoring, and causal business impact.
Machine Learningml-opsmodel-deploymentfeature-storedata-leakage - SQL & DataEasyAuto-gradedUsers Logging In Successfully From Several Countries
Group login records by user, keep only exact-match successful ones, and report users whose successful logins span at least two distinct countries, sorted.
SQL & Datahash-mapsetsfilteringgroup-by - StringsEasyAuto-gradedElapsed Minutes Since the Latest Bus Pull-Out
Convert clock strings to minutes and find the shortest wrap-around gap back to a past departure, covering unsorted input, duplicates and an empty schedule.
Stringstime-parsingmodular-arithmeticwrap-aroundlinear-scan - Data Structure DesignMediumAuto-gradedRolling-Window Request Throttle Per Client Address
Simulate a per-IP sliding-window-log throttle over a sequence of requests, using per-key queues with lazy expiry and strict half-open window boundaries.
Data Structure Designsliding-windowdequehash-maprate-limiter - StringsEasyAuto-gradedLongest Distinct Run and First Singleton Position
Tests a sliding window with last-seen indices plus a frequency count to find the longest repeat-free substring and the earliest character occurring exactly once.
Stringssliding-windowhash-mapstringsfrequency-count - System DesignMediumModel answerBuild a Global Remittance Platform: FX, Compliance, Payouts
Design a service that lets users send money abroad with live FX quotes, fees, limits, multiple funding and payout options, status tracking, refunds and notifications.
System Designsystem-designpaymentsidempotencysaga - Statistics & ExperimentsMediumModel answerTesting a Notification-First Account Switcher Ordering
Judge whether sorting a user's accounts by pending notifications beats sorting by recency, using past logs first and then a well-scoped randomized experiment.
Statistics & Experimentsab-testingcausal-inferenceposition-biastriggered-analysis - Data Structure DesignMediumModel answerWhat Java's volatile Does and Does Not Guarantee
Explain the Java Memory Model guarantees of volatile fields: visibility, happens-before ordering and reordering limits, its gaps such as compound atomicity, and when to prefer locks or atomics.
Data Structure Designjavaconcurrencymemory-modelvolatile - BehavioralMediumModel answerDefending a Major Engineering Project You Led End to End
Present a significant system you built, covering the problem, your exact role, key design choices, a real failure, and measurable results, then withstand deep follow-up questions on it.
Behavioralbehavioralproject-deep-diveownershiptrade-offs - System DesignMediumModel answerDesign a GPU Job Scheduler for Text-to-Video Generation
Design an asynchronous GPU scheduling service for single-GPU text-to-video jobs, featuring weighted fair queueing, fault tolerance, and lease-based worker management.
System Designsystem-designjob-schedulerdistributed-systemsgpus - Data Structure DesignMediumAuto-gradedRing Buffer Double-Ended Queue Simulator
Simulate a bounded double-ended queue over a batch of commands using a circular buffer with constant-time operations and correct index wraparound.
Data Structure Designdequecircular-buffersimulationdesign