practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6101 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.
- 6101
- Problems
- 2258
- Auto-graded
- 15
- Topics
- 270
- Added today
Showing 3631–3660 of 6101 results
- Trees & GraphsMediumModel answerThreaded Comment Feed: Filtering, Nesting, and Persistent Sort
Transform a flat array of comments into a sorted, nested, filterable tree while persisting the user's sort preference across sessions.
Trees & Graphstree-constructiondfslocalStoragefrontend-data - SQL & DataMediumModel answerRetail Spend Analytics: Aggregation and Regional Rankings
Write two SQL queries against a payment dataset to find top vendors globally and per region using aggregation, joins, and window-based dense ranking.
SQL & Datawindow-functionsaggregationCTEranking - Data Structure DesignMediumAuto-gradedBatch Spreadsheet Cell Evaluator with Cycle Rejection
Simulate setting and reading spreadsheet cells whose values are integers or sums of references, evaluating lazily and rejecting updates that would form cycles.
Data Structure Designgraphscycle-detectionexpression-evaluationdependency-tracking - Data Structure DesignMediumModel answerMultiset with O(1) Insert, Delete, and Uniform Random Sampling
Build a collection supporting duplicates with constant-time insertion, deletion, and uniform random selection from all stored occurrences.
Data Structure Designdata-structureshash-tablesrandomization - System DesignMediumModel answerDesign a Cloud-Based Development Workspace Service
Build a system that provisions on-demand containerized development environments with browser-based editing, terminal access, and port forwarding.
System Designcloud-infrastructurecontainersstate-management - Trees & GraphsMediumAuto-gradedShared Root of Two Nodes in a Binary Search Tree
Tests whether a candidate can exploit BST ordering to locate the deepest node that is an ancestor of both targets without searching the entire tree.
Trees & Graphsbinary-search-treelowest-common-ancestortree-traversal - BehavioralMediumModel answerTell Me About a Time You Led Through Resistance or Ambiguity
Demonstrate leadership, ownership, and measurable impact by crafting structured behavioral stories around influence, resilience, and tackling hard problems.
BehavioralSTAR methodleadershipownershipinfluence - Statistics & ExperimentsHardModel answerStaggered Rollout Causal Analysis: Designing a Robust Estimation
Design a staggered-adoption DiD for a phased 50-region rollout that stays valid under heterogeneous, dynamic treatment effects, from estimator choice to inference.
Statistics & Experimentscausal-inferencedifference-in-differencespanel-dataevent-study - Trees & GraphsMediumAuto-gradedLeft and Right View of a Binary Tree Using BFS and DFS
Tests understanding of binary tree traversal by computing boundary nodes at each depth using both breadth-first and depth-first strategies.
Trees & Graphsbinary-treebfsdfstree-traversal - SQL & DataMediumModel answerDaily Driver Earnings with Time-Based Bonuses
Calculate a courier's total earnings per day from delivery records, applying distance rates, minimum guarantees, and optional surge multipliers for high-demand hours.
SQL & Datadata-processingbusiness-logictime-windows - Data Structure DesignMediumModel answerTwo-Tier API Rate Limiter with a Sliding Window
Design a thread-safe rate limiter that enforces both a per-endpoint quota and a shared global quota using a rolling time window.
Data Structure Designrate-limitingconcurrencysliding-windowthread-safety - System DesignHardModel answerBuilding a High-Throughput Payment Processing Platform
Design a payment platform supporting wallet transfers, card transactions, refunds, and chargebacks with strong consistency, exactly-once semantics, and audit compliance.
System Designpaymentsdistributed-systemsconsistencyfinancial-systems - System DesignMediumModel answerDesign the Backend for a Real-Time Multiplayer Board Game
Design a backend that manages live game state, enforces turn-based rules, and delivers move updates in real time across thousands of concurrent sessions.
System Designwebsocketsconcurrencyreal-timegame-state - Data Structure DesignMediumModel answerBuild a Reference-Counted Shared Ownership Pointer in C++
Implement a thread-safe shared ownership smart pointer class template from scratch, covering copy/move semantics, atomic reference counting, and correct destruction.
Data Structure Designc++memory-managementconcurrency - Heaps, Sorting & SearchHardAuto-gradedMinimum Lexicographic Sequence with Precedence Constraints
Find the smallest valid ordering of numbered items when some must precede others, or detect when circular dependencies make ordering impossible.
Heaps, Sorting & Searchtopological-sortgraphheapgreedy - Statistics & ExperimentsMediumModel answerMeasuring the Impact of Sorting Inboxes by Unread Count
Design a data-driven evaluation and A/B experiment to decide whether reordering a multi-account switcher by unread message count improves user engagement.
Statistics & Experimentsexperiment-designmetric-designcausal-inference - SQL & DataMediumAuto-gradedMulti-Table Sales Analytics with Referral Tracking
Tests relational data manipulation through joins, aggregations, filtering, and ranking across interconnected tables.
SQL & Dataaggregationjoinsfilteringsorting - SQL & DataMediumModel answerSocial Network Feed Analytics with SQL Aggregation
Build SQL queries to analyze user engagement patterns across friend and non-friend content, handling temporal aggregation and interaction scoring.
SQL & Datasqldata-aggregationwindow-functionsjoins - Dynamic ProgrammingMediumAuto-gradedLargest Sum in Any Consecutive Sequence
Tests understanding of dynamic programming through finding the maximum sum achievable by selecting adjacent elements from an array.
Dynamic Programmingarrayskadanesubarrayoptimization - Statistics & ExperimentsMediumModel answerInvestigate a Sudden Drop in Email-Driven Job Applications
Walk through the email-to-application funnel to separate a tracking bug, a delivery failure, and a relevance problem from each other.
Statistics & Experimentsproduct analyticsfunnel analysisroot cause analysisrecommendation systems - Statistics & ExperimentsMediumModel answerDesigning and Analyzing a Free-Trial Growth Experiment
Design metrics, choose analysis populations, identify pitfalls, and make a business decision for an A/B test offering a one-month free trial.
Statistics & Experimentsab-testingcausal-inferencemetricsexperimentation - Statistics & ExperimentsMediumModel answerDesigning Experiments Across a Three-Sided Delivery Marketplace
Reason through A/B design, randomization units, and root-cause diagnosis for delivery-marketplace programs, promotion systems, and a spike in cancellations.
Statistics & Experimentsexperimentationcausal-inferencemarketplacemetrics - System DesignEasyModel answerStreaming Text Labeling Pipeline with Retry Logic
Build a function that reads a CSV of text records, labels each one via an external API with retries, and writes ordered JSON Lines output with per-row failure handling.
System Designpythonconcurrencydata-pipelineerror-handling - Data Structure DesignMediumAuto-gradedFreelance Crew Pay Tracker With Rolling Settlements
Tests the ability to design an in-memory ledger class driven by an operation list, maintaining running cost totals and an idempotent pay-cutoff pointer.
Data Structure Designdesignsimulationhash-map - Machine LearningMediumModel answerDesign an RL-Trained Q&A Assistant with Low-Latency Serving
Design the full stack for a question-answering assistant: real-time serving, training data collection, RL reward design, and mitigations for reward failure modes.
Machine Learningrl-from-human-feedbackllm-servingreward-designrag - System DesignMediumModel answerDesigning an isolated notebook execution platform
Design a multi-tenant cloud notebook platform that runs untrusted user code in isolated sandboxes and streams output, with focus on isolation, lifecycle, persistence and observability.
System Designsystem-designsandboxingmulti-tenancystreaming - System DesignMediumModel answerReal-Time Collaborative Text Editing System Design
Design a multi-user document editor with concurrent edits, convergence, offline reconnect, version history, permissions, and live presence.
System Designcollaborative-editingcrdtotsystem-design - Machine LearningMediumModel answerBuilding a Multi-Model Enterprise AI Research Platform
Design a production agent system for financial analysts, covering model customization strategies, agent orchestration patterns, structured output enforcement, and multi-tenant serving.
Machine Learningllm-systemsagent-designfine-tuningproduction-ml - System DesignMediumModel answerDesigning a Live Trivia Elimination Game with Spectator Fan-Out
Design the backend for a live riddle battle: rooms partitioned by coordinator, server-authoritative timing, crash recovery, and spectator isolation.
System Designsystem-designpartitioningfailure-recoverypub-sub - Trees & GraphsMediumAuto-gradedMulti-Part Algorithm Challenge: Grids, Medians, and Traversals
Tests implementation of connected-component search in grids, efficient median computation across sorted sequences, and breadth-first and depth-first graph traversals.
Trees & Graphsgraphsarraysbinary-searchbfs