practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6027 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.
- 6027
- Problems
- 2232
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 1021–1050 of 6027 results
- System DesignMediumModel answerOptimizing Airport Wi-Fi Monetization and Guest Connectivity
Redesign the product strategy for a venue-based internet service offering limited free access followed by paid tiers to increase revenue and passenger satisfaction.
System Designproduct-designpricing-strategyfunnel-optimizationuser-experience - Math & Bit ManipulationHardAuto-gradedCount Substrings Rearrangeable into Palindromes
Given a list of strings, count the number of contiguous substrings in each string whose characters can be permuted to form a valid palindrome.
Math & Bit Manipulationbit-manipulationhash-tablestringsprefix-sum - StringsMediumAuto-gradedRolling Up Page Views Through Hostname Suffixes
Aggregate per-host view counts so every host and each of its parent suffixes gets the total of itself and all hosts beneath it, using suffix enumeration and a hash map.
Stringshash-mapstringsparsingsuffix-enumeration - SQL & DataMediumModel answerQuarterly Revenue Query and Largest-File Shell Script
Write a SQL query that totals 2023 sales by quarter, and a robust bash script that finds the largest file under a directory, handling odd filenames and error cases.
SQL & Datasqlaggregationgroup-bybash - Arrays & HashingEasyAuto-gradedDetermine Highest Single Transaction Stock Profit
Find the maximum gain possible from buying and selling a stock once, given a sequence of daily values.
Arrays & Hashingarraysgreedydynamic-programming - BehavioralMediumModel answerFour Behavioral Stories: Conflict, Ownership, Learning, Pressure
Prepare structured STAR stories for four common behavioral prompts: a disagreement, owning a deadline-driven project, learning a new area quickly, and staying clear under rapid questioning.
BehavioralbehavioralSTARleadershipconflict-resolution - SQL & DataMediumAuto-gradedFind Bottom Three Active Regions by Unique User Count
Aggregate user log data to calculate distinct active users per country in 2023, then return the 3 least active countries.
SQL & Dataarrayshash-tablesortingaggregation - BehavioralEasyModel answerThree Stories: Feedback, Sudden Change, and Disagreement
Prepare three behavioral stories about coaching or receiving feedback, adapting to a mid-project shift, and resolving a disagreement, each with trade-offs, communication and measurable results.
BehavioralbehavioralSTARfeedbackconflict-resolution - Heaps, Sorting & SearchMediumAuto-gradedSmallest Conveyor Load Limit for Sequential Parcels
Find the minimum per-day load limit that moves an ordered list of parcels in at most a given number of days, using binary search on the answer with a greedy feasibility check.
Heaps, Sorting & Searchbinary-searchgreedysearch-on-answerarrays - System DesignMediumModel answerArchitecting a Streaming LLM Chat Backend at Scale
Design a backend that streams model-generated tokens to many concurrent users, covering the API, GPU inference fleet, KV-cache memory management, autoscaling and multi-turn session state.
System Designllm-servingkv-cachecontinuous-batchingstreaming - SQL & DataMediumModel answerRolling ETA median, DiD and CUPED uplift on ride-request data
Build a gap-free daily city series with a 7-day rolling median ETA and conversion in PostgreSQL, then estimate uplift with city-level DiD and a CUPED-adjusted, cluster-robust estimate in Python.
SQL & Datapostgresqlwindow-functionsdate-spinedifference-in-differences - Data Structure DesignMediumModel answerPluggable Payment Dispatch with Spring Bean Maps
Design an extensible payment dispatcher in Spring where a Map of strategy beans is injected automatically and new payment methods need no changes to the service.
Data Structure Designjavaspringstrategy-patternsolid - StringsEasyAuto-gradedEncode Keypad Multi-Tap Strokes
Simulate telephone keypad multi-tap text encoding while inserting pause delimiters for consecutive letters on the same digit key.
Stringsstringshash-tablesimulation - BehavioralMediumModel answerDiagnosing a Sluggish Web UI and Handling a Live Defect
Explain how you would find and fix the cause of a slow web frontend, then how you would triage, contain, root-cause, communicate and safely ship a fix for a production bug.
Behavioraldebuggingperformanceincident-responsefrontend - Arrays & HashingMediumAuto-gradedSubarrays Whose Matching-Element Count Hits a Residue
Count subarrays where the number of elements congruent to a residue, taken modulo the same base, equals that residue, using prefix remainders and a frequency table.
Arrays & Hashingprefix-sumhash-mapmodular-arithmeticsubarrays - StringsMediumAuto-gradedValidate a Plain Signed Decimal Literal
Check whether a string is a well-formed plain decimal literal (optional sign, digits, optional fraction) by turning a small grammar into a careful single-pass validator.
Stringsstringsparsingvalidationedge-cases - Arrays & HashingMediumAuto-gradedMonthly Signup Cohorts: Day-30 Return Rate
Group users by first-activity month and compute the share who return exactly 30 days later, excluding users whose day 30 lies beyond the last observed date.
Arrays & Hashinghash-mapdatescohort-analysisgrouping - StringsEasyAuto-gradedReassemble Framed Messages from Chunked Byte Streams
Join byte chunks from a simulated stream and split them into complete messages, using either a 4-byte length prefix or newline delimiters, while ignoring any incomplete tail.
Stringsbyte-streamparsingframingbuffering - Statistics & ExperimentsMediumModel answerInvestigating a Sustained Order Decline in a Delivery Market
Walk through how to validate, decompose, and explain a two-week fall in completed orders in one metro, then propose a fix and a way to test it in a two-sided marketplace.
Statistics & Experimentsproduct-analyticsroot-cause-analysisfunnel-analysiscausal-inference - System DesignMediumModel answerCrash-Safe Parallel Downloader for Versioned App Updates
Design an update downloader that fetches a large versioned release in parallel byte ranges, resumes after crashes without redoing verified work, and publishes only a fully verified result.
System Designsystem-designresumable-downloadsbyte-rangeintegrity-verification - System DesignHardModel answerBuilding a Voice Assistant Knowledge Pipeline for Festivals and Wildlife
Design an end-to-end knowledge pipeline for a voice assistant answering holiday and animal questions, fix mis-routed queries, and build a framework for debugging failures.
System Designdata-pipelineknowledge-graphentity-linkingintent-classification - Statistics & ExperimentsMediumModel answerDiagnosing Revenue Decline in a Revenue-Share Merchant Loan
Design metrics for a merchant cash-advance style lending product, then diagnose a quarterly revenue drop and separate product, risk, pricing, mix, and macro causes.
Statistics & Experimentsproduct-analyticsmetric-designroot-cause-analysiscausal-inference - Heaps, Sorting & SearchEasyAuto-gradedSort Array and Compute Unique Intersection
Tests implementing custom merge sort to sort an array and finding the sorted unique intersection of two lists.
Heaps, Sorting & Searchsortingmerge-sorthash-setarrays - Machine LearningMediumModel answerTruncated Sampling from Logits with a Cumulative Probability Cutoff
Write a NumPy function that turns logits into probabilities, keeps the smallest top-ranked set whose mass reaches a threshold p, renormalizes, and draws one token index.
Machine Learningnumpysamplingsoftmaxllm-decoding - SQL & DataMediumModel answerUser Spend Tiers in Pandas and Daily Platform Conversion in SQL
Build a per-user revenue and distinct-purchase table with tiers in Pandas, then write SQL for daily purchase-to-click conversion by platform over the last 30 days.
SQL & Datapandasgroupbysqlconditional-aggregation - StringsMediumAuto-gradedEvaluate a Nested Let/Add/Mult Expression, or Report Invalid
Tokenize, validate and evaluate a small Lisp-like language with scoped let bindings, returning None for any malformed or ill-formed input.
Stringsparsingrecursionscopestring-processing - System DesignMediumModel answerSmart Parcel Cubby Network: Reservations and Offline Kiosks
Design a backend for networked parcel cubbies in three sizes, preventing double booking of the last cubby and staying consistent when kiosks lose connectivity.
System Designsystem-designconcurrencyreservationsidempotency - Trees & GraphsMediumAuto-gradedCan Every Module in a Study Plan Be Finished?
Decide whether a set of ordering rules between numbered modules contains a circular dependency, by detecting a cycle in a directed graph.
Trees & Graphsgraphtopological-sortcycle-detectionbfs - Trees & GraphsMediumAuto-gradedMinimum Degrees of Separation in a Social Network
Determine the shortest path distance between two nodes in an unweighted, undirected graph using Breadth-First Search.
Trees & Graphsbfsgraphshortest-pathhash-map - Heaps, Sorting & SearchMediumAuto-gradedPick the Rank-k Score From the Top
Select the k-th largest value, counting duplicates separately, from an unsorted integer list without a full sort, using quickselect or a bounded heap.
Heaps, Sorting & Searchquickselectheapselectionpartitioning