practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6060 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.
- 6060
- Problems
- 2245
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 4411–4440 of 6060 results
- Statistics & ExperimentsHardModel answerDiagnose a Disease with Cascading Conditional Probabilities
Apply Bayes' theorem across two sequential tests to find the true posterior probability that a patient has a rare disease.
Statistics & Experimentsconditional probabilityBayes theoremstatisticsprobability - Heaps, Sorting & SearchHardAuto-gradedNearest Profiles by Masked Mean Squared Error
Tests pairwise distance computation with a missing-data-aware MSE metric, tie-breaking, and top-K ranking across user profiles.
Heaps, Sorting & Searchsortingsimilaritymissing-data - BehavioralHardModel answerRank Six Feature Ideas for an App You Actually Use
Pick a mobile app you use weekly, propose six concrete improvements, size their impact, prioritize them under real constraints, and design an experiment for your top pick.
Behavioralproduct thinkingprioritizationexperimentationestimation - Heaps, Sorting & SearchMediumAuto-gradedMinimum Cost to Combine All Elements
Tests greedy algorithm design and min-heap operations to repeatedly merge pairs optimally.
Heaps, Sorting & Searchheapgreedypriority-queue - System DesignMediumModel answerDesign a Tree Storage Service with Descendant Lookup
Design a REST API and backing storage model to persist a node hierarchy and efficiently retrieve all descendants of any node.
System DesignREST APIdatabase schematreespagination - Machine LearningMediumModel answerBuilding a City-Specific Sports News Feed with LLM Summaries
Design an ML system that ingests sports content, generates grounded summaries for local audiences, and personalizes delivery at scale.
Machine Learningml-system-designragnlppersonalization - Statistics & ExperimentsMediumModel answerModeling Engagement Durations and Rare Event Counts
Derive and validate exponential session-length models and Poisson comment-count models, covering memorylessness, survival diagnostics, and overdispersion.
Statistics & Experimentsprobability-distributionssurvival-analysispoissonoverdispersion - Trees & GraphsHardAuto-gradedFilter Hierarchical Records by Ancestor Validity
Tests memoized path traversal in a parent-pointer hierarchy with cycle detection and ancestral filtering rules.
Trees & Graphsgraphsmemoizationcycle-detection - System DesignMediumModel answerDesign a Recurring Task Scheduler with Pause and Resume
Design a distributed service that registers one-time and cron-based tasks, dispatches them when due, and supports pausing and resuming schedules reliably.
System Designschedulingdistributed-systemscronfault-tolerance - Data Structure DesignMediumAuto-gradedWord Dictionary with Insert and Query Operations
Tests implementing a character-level trie to handle insert, exact-match lookup, and prefix-existence queries while distinguishing complete words from prefixes.
Data Structure Designtriedata-structuresstring-matching - System DesignHardModel answerStreaming Analytics: Building a Live Product Popularity Service
Design a distributed system that processes purchase event streams in real time and continuously exposes the most popular products across multiple time horizons.
System Designstreamingdistributed-systemsanalyticsscalability - System DesignMediumModel answerBuild a Cloud Storage System with Chunked Uploads and Permissions
Architect a file-hosting platform separating content from metadata, supporting granular access rules and resumable multi-part uploads.
System Designstoragedistributed-systemsapi-designupload - Arrays & HashingHardAuto-gradedMinimum Window Containing All K Most-Frequent Characters
Tests ability to combine hash-counting (frequency maps) with a sliding window to find the shortest contiguous subarray satisfying a dynamic frequency-based constraint.
Arrays & Hashingarrayshash mapsliding windowfrequency counting - System DesignEasyModel answerBuilding a Foreground-Safe Stopwatch with Reliable UI Updates
Design a small iOS stopwatch/SwiftUI app with a clear state machine, clock-derived elapsed time, main-thread updates, and sensible lifecycle handling.
System Designiosswiftuistate-managementconcurrency - StringsMediumAuto-gradedGroup Words by Character Frequency
Tests hash map construction with canonical keys to partition strings by anagram equivalence
Stringshash-mapsortingstring-manipulation - Dynamic ProgrammingMediumAuto-gradedPrime-Step Path Score + Bottleneck Throughput Boost
Tests DP over prime-length jumps on an array and binary search on a "maximize the minimum" pipeline scaling problem, combined into one function.
Dynamic Programmingdynamic-programmingbinary-searchnumber-theory - Arrays & HashingMediumAuto-gradedContiguous Subarray with Sum Divisible by K
Tests whether a candidate can apply prefix-sum modular arithmetic to detect a length-≥2 subarray whose sum divides evenly by k in linear time.
Arrays & Hashingprefix-sumhash-mapmodular-arithmetic - Data Structure DesignHardAuto-gradedIn-Memory Cell Grid with Formula Chaining
Tests dependency graph design, lazy cache invalidation, recursive formula evaluation, and cycle detection in a grid of named cells.
Data Structure Designdesigngraphssimulation - Heaps, Sorting & SearchHardModel answerBinary Search with Delayed Feedback Protocol
Find a hidden number using binary search when each query returns the result of your previous guess instead of your current one.
Heaps, Sorting & Searchbinary-searchalgorithmsfeedback-systems - Data Structure DesignMediumModel answerExtend a Python Abstract Pipeline with a Concrete File Processor
Implement a concrete subclass inside a pre-built abstract framework that streams CSV input, transforms rows to JSON, and self-registers with a CLI factory.
Data Structure Designobject-oriented-designabstract-base-classfile-iostreaming - Arrays & HashingMediumModel answerSliding Tile Board: Merge Logic for All Four Directions
Implement the slide-and-merge move for a 2048-style grid in all four directions, sharing a single merge routine across every direction.
Arrays & Hashingarrayssimulationmatrix - StringsMediumModel answerPython Lists vs Tuples: Mutability, Memory, and Use Cases
Compare Python lists and tuples across mutability, memory layout, hashability, and idiomatic use, including tricky edge cases.
Stringspythondata-structuresmutabilityhashability - Data Structure DesignMediumAuto-gradedSliding-Window Traffic Throttle with Dual Limit Rules
Tests sliding-window counting over timestamped event logs using per-source and per-source-destination deque-based rate limiting.
Data Structure Designsliding-windowdequehash-mapsimulation - SQL & DataMediumModel answerQuarter-over-Quarter Revenue Analysis with Same-Store Metrics
Build a SQL query that compares quarterly performance across different time periods, handling store openings/closings and computing both total and same-store growth rates.
SQL & Datasqlaggregationtime-seriesanalytics - Stacks & QueuesMediumAuto-gradedCascade Removal of Equal Neighbor Groups
Tests stack-based simulation of iterative removals that trigger chain reactions when fragments recombine.
Stacks & Queuesstackstringsimulation - Math & Bit ManipulationEasyAuto-gradedCalculate QR Campaign Funnel Metrics
Tests understanding of multi-stage conversion funnels by computing metrics at each step given input rates.
Math & Bit Manipulationmathfunnel-analysisconversions - System DesignHardModel answerWrite Path Internals: InnoDB, Cache Consistency, and TLS
Trace a single HTTPS profile update through TLS negotiation, a Redis cache-aside layer, and InnoDB's WAL-based durability guarantees.
System Designmysqlredistlsinnodb - SQL & DataMediumAuto-gradedReconcile Ledger and Bank Snapshots for a Month
Join two per-month balance datasets on account id, classify each account as match, mismatch, or missing on one side, handling true zero balances correctly.
SQL & Datahashingjoindata-manipulationedge-cases - Arrays & HashingMediumAuto-gradedProbability the Third Card Is an Ace After an Ace Appears
Compute a conditional probability for drawing three cards without replacement by splitting on how many aces the first two draws contain.
Arrays & Hashingprobabilityconditional-probabilitycountingcombinatorics - Arrays & HashingMediumAuto-gradedClockwise Rotation with Frozen Diagonals
Simulate clockwise 90° rotation on a square grid while keeping all main-diagonal and anti-diagonal elements fixed in place.
Arrays & Hashingmatrixsimulationrotation