practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6040 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.
- 6040
- Problems
- 2237
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 1201–1230 of 6040 results
- Trees & GraphsMediumModel answerTwo Warm-Ups: One-Deletion Palindrome and Column-Grouped Tree Output
Decide whether a string becomes a palindrome after removing at most one character, then group a binary tree's node values by column using level-order tie-breaking.
Trees & Graphstwo-pointerspalindromebfsbinary-tree - Trees & GraphsMediumAuto-gradedEarliest Finish Time for a Dependent Job Pipeline
Compute the shortest total time to finish all jobs with unlimited parallelism by finding the longest weighted path in a dependency graph, returning -1 if a cycle exists.
Trees & Graphstopological-sortdaglongest-pathdynamic-programming - Data Structure DesignEasyAuto-gradedIn-Memory Store with Transaction Layering
Implement an in-memory key-value database supporting GET, SET, DELETE, and nested transaction semantics (BEGIN, ROLLBACK, COMMIT).
Data Structure Designdesign-dsstacks-queuesarraysstrings - BehavioralMediumModel answerMaking the Case for Working Across the Whole Stack
Explain in an interview why you want a full-stack role rather than a frontend-only or backend-only one, using motivation, the problems you enjoy, and how breadth helps products and teamwork.
Behavioralbehavioralmotivationfull-stackcommunication - Arrays & HashingMediumAuto-gradedCount Contiguous Runs That Add Up to a Goal
Count contiguous non-empty subarrays whose elements sum to a goal value, using running prefix sums with a frequency map to handle negatives and zeros in linear time.
Arrays & Hashingprefix-sumhash-mapsubarraycounting - Data Structure DesignMediumAuto-gradedPath-Addressed Tree Store: Replay a Command Log
Simulate a path-keyed tree store by replaying a list of commands, testing trie or hash-map design, path validation, and exact failure semantics.
Data Structure Designdesigntriehash-mapsimulation - Statistics & ExperimentsEasyModel answerValidating Autonomous Vehicle Simulations Against Real-World Sensor Logs
Design a statistical and domain-specific evaluation framework to determine if a simulated driving environment realistically captures vehicle behavior and physical edge cases.
Statistics & ExperimentsA/B TestingDistribution ComparisonAutonomous VehiclesHypothesis Testing - Data Structure DesignMediumModel answerBuild an In-Memory Price History Store with One-Shot Updates
Design a per-symbol price store supporting lookups, custom change formulas, atomic range updates that can touch each slot only once, and a switch from daily to hourly data.
Data Structure Designdata-structure-designtime-seriesatomic-updateshash-map - System DesignEasyModel answerPinpointing a Storage Bottleneck on a Slow Production Host
Walk through how to confirm whether disk I/O is slowing a service, find which process drives it, characterize the workload, and propose measured fixes.
System Designlinuxperformanceiostatstorage - Data Structure DesignHardAuto-gradedBest-Fit Block Allocator with Coalescing and Log-Time Operations
Simulate a best-fit extent allocator over a huge block range, where reserve and release must merge adjacent free runs and run in logarithmic time.
Data Structure Designdesignordered-settreapcoalescing - Greedy & IntervalsMediumAuto-gradedFewest Rooms to Host All Bookings
Find the smallest number of rooms that can host every booking at once, where a booking may begin the moment another one ends, using sorting and a min-heap.
Greedy & Intervalsintervalsmin-heapsortinggreedy - Statistics & ExperimentsHardModel answerPlan a Checkout Experiment with Safety Metrics and Pre-Set Rules
Design a controlled experiment for a redesigned checkout flow: hypothesis, sample size, randomization, non-inferiority guardrails, a frozen analysis plan, and multiplicity control.
Statistics & Experimentsab-testingexperiment-designpower-analysisguardrail-metrics - Arrays & HashingMediumAuto-gradedTightest Window Covering K Different Values
Find the minimum length of a contiguous block of an integer list containing at least k different values, using a sliding window with a frequency map.
Arrays & Hashingsliding-windowtwo-pointershash-map - System DesignMediumModel answerPermission-Aware Q&A Assistant over Issue Tracker and Wiki
Design an MVP retrieval-augmented assistant that answers employee questions across a ticketing system and a wiki, with citations, per-user access control, and fresh data.
System Designragretrievalaccess-controlhybrid-search - System DesignMediumModel answerDesigning a Safe Release and Reliability Plan for a Fleet Event Pipeline
Design an end-to-end reliability plan for an event-ingestion service: guarded dependency calls, SLO-based alerting, reversible schema changes, and a canary pipeline with automatic rollback.
System Designcircuit-breakerslocanary-deploymentschema-migration - System DesignMediumModel answerBuilding a Scalable Short-Link Service from Scratch
Design a service that maps long web addresses to compact codes and serves redirects at very high read volume, covering API, storage, code generation and caching.
System Designsystem-designurl-shortenercachingkey-generation - Data Structure DesignMediumAuto-gradedBatch Simulation of Conflict-Free Node Locks on a Rooted Tree
Process a batch of lock, unlock and query operations on a rooted tree where no locked node may be an ancestor or descendant of another, using subtree ranges and Fenwick trees.
Data Structure Designtreeeuler-tourfenwick-treedesign - System DesignHardModel answerDesign a Scalable IAM Platform for Users and Services
Design a multi-tenant Identity and Access Management system with SPIFFE-style workload attestation, dynamic RBAC/ABAC policy evaluation, local enforcement, and tamper-evident auditing.
System Designsystem-designsecurityiamdistributed-systems - System DesignEasyModel answerSecure S3 Upload Patterns and TypeScript Structural Typing
Architect secure, direct S3 uploads via pre-signed URLs/IAM and analyze TypeScript structural typing alongside React useEffect async cleanup.
System DesignAWSS3IAMTypeScript - StringsMediumAuto-gradedFill Placeholders in a Chained Request Template
Recursively resolve {{dotted.path}} placeholders in a nested request, keeping native types for whole-string matches and stringifying embedded ones.
Stringsrecursionregexjsontemplate-substitution - System DesignHardModel answerTroubleshooting a Distributed Cache Degradation Incident
Walk through an end-to-end incident response plan for high cache misses and service latency, covering triage, observability, hypothesis testing, mitigations, and post-incident RCA.
System Designcachingincident-responsedistributed-systemsobservability - BehavioralMediumModel answerLeading a Quiet, Vague Analytics Interview Without Losing Rigor
Explain how you would take charge of a 45-minute analytics case with silent interviewers and a fuzzy prompt: agree on a goal and metric, record assumptions, and deliver a defensible conclusion.
Behavioralstakeholder-managementmetric-designambiguitycommunication - System DesignMediumModel answerDesign a Secure User Registration and Authentication Service
Architect an in-house email/password signup and login system emphasizing secure password storage, API contract design, session state management, and edge-case handling.
System Designauthenticationsecurityapi-designdatabase-design - System DesignMediumModel answerBuild a Tenant-Isolated Platform for Selling and Streaming Courses
Design a SaaS learning platform where organizations run separate course catalogs, learners buy access via an external payment provider, and prerequisite rules gate enrollment.
System Designsystem-designmulti-tenancypaymentsidempotency - Data Structure DesignMediumAuto-gradedSimulate a Multi-User File Store with Quotas and Compression
Simulate a command-driven in-memory file store with ownership, per-user quotas, prefix/suffix search, quota-driven eviction and size-changing renames.
Data Structure Designdesignhash-mapsimulationsorting - Statistics & ExperimentsHardModel answerDesign Flexible Profile Expression for a Swipe-Based Dating App
Design a profile-personalization feature for a swipe-based dating app that works for both Millennial and Gen Z users, then plan the research, launch, metrics and feedback loops.
Statistics & Experimentsproduct-senseexperiment-designmarketplaceuser-research - Data Structure DesignMediumModel answerBinary Wire Format for a Nested Key-Value Map
Design and implement a versioned, checksummed binary format that converts a nested key-value map to bytes and back, and compare it with JSON and MessagePack.
Data Structure Designserializationbinary-formatchecksumversioning - System DesignHardModel answerDesign a Real-Time Ride-Matching Platform and a Price-Alert Service
Architect two scalable backend platforms: a low-latency, geo-partitioned ride-hailing system and an asynchronous, queue-decoupled price tracking and notification pipeline.
System Designsystem-designdistributed-systemsgeospatialevent-driven - System DesignMediumModel answerWalk Through and Justify a System You Built From Scratch
Open-ended round: describe a significant system you personally owned, then justify its design, technology choices and hardest problems while an interviewer questions each decision.
System Designproject-deep-divearchitecturetrade-offsownership - Heaps, Sorting & SearchMediumAuto-gradedCombine Several Pre-Sorted Lists Into One Sorted List
Tests merging K nondecreasing integer lists into a single sorted list, preserving duplicates and handling empty lists, using a heap or pairwise merging.
Heaps, Sorting & Searchheapmergek-way-mergesorting