practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6074 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.
- 6074
- Problems
- 2252
- Auto-graded
- 15
- Topics
- 274
- Added today
Showing 1801–1830 of 6074 results
- Stacks & QueuesMediumAuto-gradedExpand Nested Repeat Notation in a Compressed String
Parse a string with nested count-and-bracket repeat markers and expand it fully, testing recursive or stack-based parsing and careful handling of multi-digit counts.
Stacks & Queuesstringsstackrecursionparsing - Data Structure DesignMediumAuto-gradedRolling Mean of Payload Lengths Over a 60-Second Event Window
Process a stream of checksummed events with duplicates and out-of-order timestamps, reporting a running average payload length over a 60-second window using a queue, a set and a running sum.
Data Structure Designdequesliding-windowhash-setstreaming - BehavioralMediumModel answerWalking Through Your Own Project and Its Toughest Technical Problem
Prepare a project deep dive that shows what you owned, one hard technical problem in depth, the options you weighed, and the evidence that your fix worked.
Behavioralbehavioralproject-deep-diveownershiptechnical-communication - Math & Bit ManipulationMediumAuto-gradedFloor of a Square Root Without Built-ins
Compute the largest integer whose square does not exceed a non-negative integer, without using built-in roots or powers, using monotonic search or an iterative refinement.
Math & Bit Manipulationbinary-searchmathnewton-methodinteger-arithmetic - System DesignMediumModel answerChoosing Between C++ and Go for Server-Side Systems
Compare C++ and Go for backend work across memory, concurrency, error handling, language design and tooling, and justify which one fits a given service.
System Designcppgolanglanguage-comparisonconcurrency - StringsMediumAuto-gradedLongest Word That Swallows Another Word in the List
Find the longest distinct word in a list that contains a different word from the list as a contiguous substring, with a fixed tie-break and empty-string handling.
Stringsstringssubstringsortinghash-set - Arrays & HashingMediumAuto-gradedApply a Single Capture Move on a Two-Colour Grid
Apply one move on a grid: validate the target cell, find enclosed opponent runs in eight directions, and flip them together, or return the grid unchanged if no capture is possible.
Arrays & Hashinggridsimulationmatrixdirections - SQL & DataMediumModel answerTop Content Category by Country and Weekly Power-User Share
Write SQL to find each country's top-impression category and the share of weekly active users who were active on 4+ days and used 3+ distinct features on a single day.
SQL & Datasqlwindow-functionsaggregationcte - Machine LearningMediumModel answerDesigning a User-Generated Game Recommendation System
Architect an end-to-end recommendation backend and ML pipeline for a large platform offering user-created interactive experiences, emphasizing cold-start strategies and multi-task learning.
Machine Learningrecommendation-systemsmachine-learningsystem-designmulti-task-learning - System DesignMediumModel answerEngagement Analytics Pipeline: Daily and Monthly Unique Users
Design a pipeline that ingests app events and serves daily and monthly distinct-user counts, with sliced dashboards, correct handling of late data, and sound data-quality and privacy practices.
System Designsystem-designdistinct-countinghyperloglogstreaming - System DesignMediumModel answerReal-Time Heavy Hitters Pipeline for a High-Volume Event Stream
Design a distributed streaming service that reports the K most frequent keys over sliding and tumbling windows, with fast queries, hot-key tolerance and replay-safe results.
System Designstreamingtop-kcount-min-sketchspace-saving - Linked ListsEasyAuto-gradedDual Pointer Assessment: Loop Detection and Ordered Pair Sum
Evaluate two algorithmic challenges using the two-pointer technique: detecting cyclic pointer references and locating index pairs for a target sum in an ordered list.
Linked Listslinked-liststwo-pointersarrays - Math & Bit ManipulationMediumAuto-gradedGambler's Ruin: Chance of Hitting the Goal Before Bust
Compute the probability that a biased ±1 random walk reaches a target balance before hitting zero, using a recurrence and closed form with careful edge cases.
Math & Bit Manipulationprobabilitygambler's ruinrecurrencerandom walk - Stacks & QueuesEasyModel answerRun a Tiny Postfix Command Interpreter with Error Codes
Simulate a small stack machine over whitespace-separated tokens, handling arithmetic, DUP, POP and PRINT, and stop at the first error while keeping the output produced so far.
Stacks & Queuesstacksimulationparsingerror-handling - SQL & DataMediumModel answerCalculate Early User Retention Rates by Subscription Tier
Compute 7-day retention rates across user subscription plans using PostgreSQL, handling distinct user counts, edge cases, and four-decimal precision.
SQL & Datasqlpostgresqlaggregationsjoins - System DesignEasyModel answerMastering Core Java and Spring Framework Fundamentals
A comprehensive technical overview of essential Java language mechanics, concurrency models, SOLID architecture, and Spring Framework core concepts for backend engineers.
System Designjavaspringconcurrencysolid-principles - Trees & GraphsMediumAuto-gradedEmptying a Directory Tree: Record the Deletion Order
Produce the deterministic bottom-up deletion sequence for a file tree given as flat path lists, using an iterative post-order traversal that survives very deep nesting.
Trees & Graphspost-orderdfsiterativestack - Arrays & HashingEasyAuto-gradedWeekly Trailing Mean Over a Daily Usage Series
Compute the mean of every full block of seven consecutive readings in a list, returning an empty list when fewer than seven readings exist; tests sliding-window technique.
Arrays & Hashingsliding-windowarraysprefix-sumsnumerics - Data Structure DesignEasyModel answerImmutable Folder Tree State with Safe Move and Delete
Design a normalized, immutable state model for a nested folder tree and implement add, move (with cycle rejection) and recursive delete efficiently for deep trees.
Data Structure Designtreestate-managementimmutabilitycycle-detection - Data Structure DesignMediumAuto-gradedTrack Busiest Processing Node in Rotating Allocation System
Simulate round-robin package allocation across nodes with cycle resets, capacity limits, and permanent node shutdowns.
Data Structure Designarraysdesign-dssimulation - System DesignMediumModel answerBuilding a Durable Messaging Backend: Endpoints, Schema, Sync
Design the endpoints, data model, and core flows of a basic messaging service with durable sends, safe retries, ordered history, live push, and catch-up after a dropped connection.
System Designsystem-designapi-designdatabase-schemaidempotency - Data Structure DesignMediumModel answerTask Scheduling Order and Undoable Command Pipeline
Resolve prerequisite-constrained task sequences with cycle detection, then construct an extensible Command pattern system with state rollback functionality.
Data Structure Designtrees-graphsdesign-dsstacks-queues - BehavioralMediumModel answerDisagreeing on Design and Bridging Different Work Styles
Tell a story about settling a engineering design dispute with evidence, then a second one about adjusting how you and a differently-minded colleague collaborate.
Behavioralbehavioralconflict-resolutioncollaborationcommunication - Data Structure DesignHardModel answerBlocking Bounded Buffer for Many Producers and Consumers
Design and code a fixed-capacity, multi-producer multi-consumer buffer with timed blocking put/get, fair waiter ordering, clean shutdown and backpressure, and explain how you would test it.
Data Structure Designconcurrencysynchronizationcondition-variablesbackpressure - System DesignMediumModel answerBuild an Async Text-to-Video Service on a Shared GPU Cluster
Design an asynchronous text/image-to-video platform: job lifecycle, moderation, GPU scheduling, checkpoint-based recovery, and autoscaling for a mixed H100/A100 fleet.
System Designgpu-schedulingdistributed-systemsjob-queuefault-tolerance - Data Structure DesignHardModel answerDistributed Block Matrix Multiplication via Cannon's Algorithm
Coordinate grid-based worker nodes to perform memory-efficient distributed matrix multiplication without deadlocks.
Data Structure Designdistributed systemsmatrix multiplicationconcurrencyalgorithms - System DesignHardModel answerDesign a Real-Time Messaging Platform with High-Velocity Group Analytics
Architect a low-latency chat platform supporting 1:1 and large group channels, with real-time state synchronization and live streaming identification of high-activity groups.
System Designsystem-designdistributed-systemswebsocketsstream-processing - BehavioralMediumModel answerBehavioral Round: Motivation, Initiative, and Disagreement Stories
Prepare structured stories on why you want a role, when you took initiative unprompted, how you handled a workplace disagreement, and what drives you.
Behavioralbehavioralstar-methodconflict-resolutionownership - Data Structure DesignMediumModel answerLayered Ledger Service: Cash, Transfers, Fees and Held Funds
Design and code a bank ledger that grows in stages: cash operations, per-account statements with failures, internal and external transfers with fees, and delayed transfers that lock funds.
Data Structure Designledgermoney-handlingobject-oriented-designtransactions - Heaps, Sorting & SearchMediumAuto-gradedFind Array Peak Index and Form Unique Word Abbreviation List
Locate a local peak index in an array via binary search and generate minimal unambiguous string abbreviations for a list of words.
Heaps, Sorting & Searchbinary-searchstringshash-maparrays