practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6134 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.
- 6134
- Problems
- 2275
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 2881–2910 of 6134 results
- Data Structure DesignEasyAuto-gradedReplay Ledger Commands on a Guarded Account
Simulate an account that processes a list of deposit, withdraw, balance and history commands, rejecting invalid amounts and overdrafts while recording only successful transactions.
Data Structure Designsimulationclass-designstate-managementvalidation - Math & Bit ManipulationMediumAuto-gradedTie-Aware Ranking Probabilities for Three and Four Tasters
Derive conditional ranking probabilities for i.i.d. scores, with and without ties, and return them as a dictionary keyed by named quantities.
Math & Bit Manipulationprobabilitycombinatoricsconditional-probabilityclosed-form - StringsHardModel answerOrdered Index Pairs Whose Concatenation Reads the Same Backwards
Given distinct lowercase words, list every ordered index pair whose concatenation is a palindrome, doing much better than checking all pairs.
Stringspalindrometriehashingkmp - Data Structure DesignMediumModel answerPointers vs References in C++: Semantics and API Design
Contrast C++ raw pointers with references, choose the right parameter and return types for four trading-engine APIs, and explain how aliasing affects optimization.
Data Structure Designcpppointersreferencesapi-design - Arrays & HashingEasyAuto-gradedTriple Array Toolkit: Lookup, Increment, Zero Shift
Combines a binary search on a sorted list, adding one to a digit-array number with carry, and a stable in-place move of zeros to the back.
Arrays & Hashingbinary-searchtwo-pointerscarryin-place - Machine LearningMediumModel answerWalk Through and Stress-Test Your Own Alpha Signal Research
Describe a signal-research project you built, defending how the signal was defined, scored, modeled and validated, and what the evidence does and does not prove.
Machine Learningquant-researchinformation-coefficientbacktestingfeature-engineering - Data Structure DesignMediumModel answerPython Deep Dive: Concurrency, Generators, Typing and Memory
Nine-part Python fundamentals review covering the GIL, concurrency models, decorators, generators, typing, packaging, profiling, memory management and exceptions.
Data Structure Designpythongilconcurrencygenerators - System DesignMediumModel answerHighly Available Order Service With Durable Async Jobs
Design a horizontally scalable Spring Boot order backend that survives deploys and traffic spikes while guaranteeing that invoice and email jobs are never lost.
System Designspring-boothigh-availabilitymessage-queuetransactional-outbox - Trees & GraphsHardModel answerPrincipal Types for a Tiny Lambda Calculus
Build an AST for variables, lambdas and applications, then infer each expression's most general function type using unification, with an occurs check to reject infinite types.
Trees & Graphstype-inferenceunificationhindley-milnerast - Statistics & ExperimentsEasyModel answerWhy Age-Restricted Orders Fail More Often, and How to Test a Fix
Diagnose why one product category has a lower fulfillment rate on a delivery platform, choose data to confirm each cause, and analyze a randomized fix using a two-sample t-test.
Statistics & Experimentshypothesis-testingt-testproduct-metricscausal-inference - Trees & GraphsEasyAuto-gradedReporting Chain Length Between Two Employees
Find the number of links on the path between two people in a company tree given as pairs, which tests undirected graph modeling and BFS or lowest common ancestor reasoning.
Trees & Graphsgraphbfstreeshortest-path - Greedy & IntervalsEasyAuto-gradedBest Single Buy-Sell Gain from Daily Quotes
Find the largest gain from buying on one day and selling on a later day in a list of daily prices, returning 0 if no gain is possible.
Greedy & Intervalsgreedyarraysrunning-minimumsingle-pass - System DesignMediumModel answerTurning JSON Point Data into Lines via a Third-Party Drawing Service
Describe how to parse JSON point data, decide how points connect, build the drawing service's request, and recover safely from failures without creating duplicate drawings.
System Designapi-integrationjson-parsingidempotencyerror-handling - SQL & DataMediumAuto-gradedDaily Tally of Users Who Posted on Their Signup Day
Given user and post records with timestamps, count per signup date how many users published at least one post that same calendar day, counting each user once.
SQL & Datahash-mapdatesdedupaggregation - SQL & DataHardModel answerTableau Blend vs Join: Targets Against Sales Walkthrough
Work out exact join and blend results on two small tables, then explain how filter order, fan-out and granularity change the numbers and when blending is the better choice.
SQL & Datatableaudata-blendingjoinsorder-of-operations - System DesignMediumModel answerDesign a Multi-Provider Money Transfer Price Comparison Service
Design a service that gathers remittance quotes from many providers, computes true customer cost against a mid-market rate, and clearly marks stale or missing data.
System Designsystem-designcachingfault-tolerancedata-normalization - System DesignMediumModel answerCatalog Backend for a Multi-Retailer Grocery Delivery App
Design the service that ingests retailer product, price and stock data and serves store-scoped browse, search and item pages, while keeping checkout prices consistent.
System Designsystem-designcatalogdata-ingestionsearch - Trees & GraphsMediumModel answerTallying a Tree of Message-Passing Processes
Each tree node is an isolated process with only async send and blocking receive. Design a protocol so the root learns the tree size, tolerates lost and duplicate messages, and returns a structured result.
Trees & Graphsdistributed-systemsconvergecastidempotencyretries - Math & Bit ManipulationMediumModel answerStable Softmax, Sliding Variance and Balanced Partition
Three short coding tasks: an overflow-safe softmax, an O(1) sliding-window variance with a ring buffer, and splitting positive integers into two groups with the smallest sum gap.
Math & Bit Manipulationsoftmaxnumerical-stabilitywelfordsliding-window - Math & Bit ManipulationEasyAuto-gradedAnnual Profit and Break-Even Value for a Lounge Menu Item
Compute a per-site annual operating result and the break-even per-unit benefit from visit volume, uptake rate, unit cost, unit benefit, a one-time setup cost, and a time horizon.
Math & Bit Manipulationarithmeticbreak-evensimulationedge-cases - Arrays & HashingMediumAuto-gradedMean Front-to-Rear Lens Flips Across Recorded Sessions
Group event logs by session, sort chronologically, count adjacent front-then-rear transitions, and average over all sessions, including sessions with zero flips.
Arrays & Hashinghash-mapgroupingsortingsimulation - Dynamic ProgrammingMediumAuto-gradedDistinct Value Groups Summing to a Goal, Each Item Used Once
Enumerate every distinct multiset of values from a list with repeats that adds up to a goal, using each position at most once, via sorted backtracking with duplicate skipping.
Dynamic Programmingbacktrackingrecursionsortingcombinations - Heaps, Sorting & SearchEasyAuto-gradedClosest Points to a Query Vector, Ranked with Index Tie-Break
Select the k dataset points nearest to a query in n-dimensional space, ordered by distance, with ties resolved by smaller index.
Heaps, Sorting & Searchk-nearest-neighborssortingheapeuclidean-distance - BehavioralMediumModel answerWalking Through a Technical Choice You Made and What It Cost
Prepare a structured account of one real engineering decision: the options you weighed, your own role, the evidence behind it, the costs you accepted, and what would make you reverse it.
Behavioralbehavioraltrade-offstechnical-decisionownership - SQL & DataEasyModel answerWhy a Garden Mulch Report Loses Its Non-Promo Days
Diagnose a multi-join SQL report that undercounts mulch sales, trace the lost rows step by step, and rewrite it to return all 30 days with correct totals.
SQL & Datasqlleft-joinwhere-vs-ondate-spine - System DesignMediumModel answerBuild a Short-Post Social Feed Platform at Scale
Design a backend for a social platform where users publish brief posts, follow each other, and read a recent-posts home feed, covering feed delivery, storage, caching, and abuse controls.
System Designsystem-designnews-feedfan-outcaching - Arrays & HashingMediumModel answerScoring Parsed Payroll Form Output Against Ground Truth
Write a scorer that compares fields extracted from tax forms to a ground-truth mapping, normalizing keys and currency, then reporting match rate, missing and mismatched fields, and precision/recall.
Arrays & Hashingdata-normalizationhash-mapsevaluation-metricsprecision-recall - BehavioralMediumModel answerDriving a Vague Project to a Shippable Result
Tell a structured story about a project with unclear goals: how you scoped it, aligned stakeholders, shipped an early version, and let feedback reshape the plan.
Behavioralbehavioralownershipambiguitystakeholder-management - Trees & GraphsMediumAuto-gradedWords Traced Through a Letter Board
Find every dictionary word that can be traced through orthogonally adjacent cells of a letter board without reusing a cell, using backtracking guided by a prefix tree.
Trees & Graphsbacktrackingtriedfsgrid - Statistics & ExperimentsEasyModel answerExplaining Significance Results to Non-Technical Stakeholders
Explain in plain language what a p-value measures, why it matters for ship-or-don't-ship decisions, and which common misreadings a strong answer should avoid.
Statistics & Experimentsp-valuehypothesis-testingab-testingcommunication