practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6098 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.
- 6098
- Problems
- 2258
- Auto-graded
- 15
- Topics
- 271
- Added today
Showing 3691–3720 of 6098 results
- Statistics & ExperimentsMediumModel answerDetecting Bot Accounts and Measuring Generative Ad Tools
Design metrics and experiments to evaluate an automated account integrity classifier and a generative AI ad creation tool on a social platform.
Statistics & Experimentsexperimentationmetricsmachine-learningads - Machine LearningHardModel answerDesigning a Sponsored Product Ranking System for Search
Design an end-to-end ML pipeline that selects and ranks paid listings in e-commerce search results, balancing advertiser value, user relevance, and platform revenue.
Machine Learningads rankingrecommendation systemsmulti-task learningauction design - Data Structure DesignMediumModel answerDefensive Coding: Validate and Harden a Snake Game
Design an input-validation strategy, error-handling policy, and test suite to protect a Snake game implementation from every class of bad input.
Data Structure Designvalidationerror-handlingtestingsnake-game - Heaps, Sorting & SearchMediumAuto-gradedMerge K Sorted Lists to Find Smallest Elements
Tests efficient multi-way merge using a min-heap to extract the k smallest values from multiple sorted arrays without flattening the entire input.
Heaps, Sorting & Searchheapmergesortingoptimization - Data Structure DesignMediumAuto-gradedFixed-Capacity Eviction Cache with Recency Tracking
Tests whether you can design a cache that evicts the least recently accessed entry in O(1) time by combining a hash map with an ordered structure.
Data Structure Designhash-maplinked-listdesigncache - System DesignHardModel answerZero Trust Video Delivery: Access Models and Secure Streaming
Compare VPN, ZTNA, and RBI enforcement models, then design a chunk-level secure streaming pipeline for high-bitrate enterprise video under a Zero Trust policy.
System Designzero-trustmedia-streamingsecurityCDN - System DesignHardModel answerBuild a Near-Real-Time Environmental Data Feed API
Design a platform that polls an external sensor API hourly for ~2,000 U.S. locations and serves current readings with a strict 10-minute freshness guarantee.
System Designingestion-pipelinecachingrate-limitingidempotency - Trees & GraphsMediumModel answerFind the Longest Path in an Undirected Tree
Given a tree as an adjacency list, return the sequence of nodes forming its diameter — the longest simple path between any two nodes.
Trees & GraphsBFSDFStree diameterpath reconstruction - System DesignMediumModel answerInvestigating Latency Spikes After Traffic Doubles
Diagnose and resolve severe performance degradation in a distributed system after user load doubles, using observability and root-cause analysis.
System Designperformanceobservabilitydistributed-systemscaching - Machine LearningHardModel answerDesign a Recommendation Engine with a Conversational Layer
Design a personalized recommender from scratch, then add a chatbot that surfaces and explains those recommendations without hallucinating unavailable items.
Machine Learningrecommendation systemsretrievalLLMsystem design - System DesignMediumModel answerDesign a Competitive Programming Practice Platform
Design a scalable web platform where users can browse coding problems, run code in a sandboxed environment, and receive automatic judgement across multiple languages.
System Designsystem-designdistributed-systemscode-executionsandboxing - BehavioralMediumModel answerTell Me About the Most Complex Project You Delivered End to End
Describe a large, cross-functional project you owned: scope, design trade-offs, collaboration, risks, results, and honest lessons learned.
Behavioralownershipcross-functional collaborationtrade-offsproject management - Heaps, Sorting & SearchHardModel answerRolling Window Median Bounds + Binary Array Tiling
Find the max and min sliding-window medians in O(n log k), then partition a binary array into even uniform segments with minimum flips.
Heaps, Sorting & Searchsliding windowheapdynamic programmingbinary array - Statistics & ExperimentsMediumModel answerDesign an Experiment to Measure a New Feature's Effect on Engagement
Plan a controlled experiment to test whether a recommendation feature increases engagement, including metric selection, sample sizing, and bias mitigation.
Statistics & ExperimentsA/B testingexperimentationmetricscausal inference - Statistics & ExperimentsMediumModel answerDiagnose a Simultaneous Rider Drop and Rising Wait Times
Investigate two correlated marketplace regressions — falling monthly active riders and longer pickup waits — using structured decomposition and causal reasoning.
Statistics & Experimentsroot-cause analysismarketplace metricssupply-demandmetric decomposition - System DesignMediumModel answerDesign a Resilient AI Chat Service with Streaming and Failover
Build a customer-facing chat platform powered by a third-party LLM, handling streaming responses, network interruptions, and provider outages gracefully.
System Designreal-timemessagingerror-handlingstreaming - Trees & GraphsHardAuto-gradedDetect a Profitable Currency Trade Loop
Tests whether you can model exchange rates as a weighted directed graph and apply Bellman-Ford to detect a cycle whose rate product exceeds 1.
Trees & Graphsgraphsbellman-fordlogarithms - Arrays & HashingMediumModel answerLayered Invoice Processor with Discounts, Tax, and FX
Build a multi-part order cost engine that handles input validation, per-item discounts, order-level tax, multi-currency conversion, and banker's rounding.
Arrays & Hashingdata-processingdecimal-arithmeticinput-validationsorting - Trees & GraphsMediumAuto-gradedReachable Stocked Nodes Within a Hop Limit
Tests BFS on an undirected graph to filter nodes by shortest-path distance and a secondary inventory condition, including edge-case handling for missing keys and duplicates.
Trees & Graphsbfsgraphsshortest-path - SQL & DataMediumAuto-gradedCount Distinct Users by Department and Time Window
Tests set-based deduplication and join logic to find unique users who interacted with products in a specific department during a time range.
SQL & Datadata-manipulationset-operationsfiltering - Data Structure DesignHardModel answerBuild a Subscription Pattern Recognition Engine
Create a system that discovers recurring billing patterns in transaction data, handling merchant name variations, timing drift, and price changes.
Data Structure Designpattern-recognitiondata-processingheuristics - Data Structure DesignMediumModel answerBuild an In-Memory Promo Code Service
Design and implement a class that creates, validates, and redeems promotional discount codes with expiry, global and per-user limits, and idempotent retries.
Data Structure Designhash-mapexpirationidempotencyconcurrency - Math & Bit ManipulationMediumAuto-gradedFewest Steps to Reach One
Tests greedy reasoning over binary structure to find the minimum number of halving and increment/decrement steps needed to reduce a positive integer to 1.
Math & Bit Manipulationgreedybit-manipulationmath - Machine LearningMediumModel answerDiagnosing and Fixing a Degraded Forecasting System
Debug a time-series forecasting system experiencing accuracy decline by isolating failures, measuring impact, and implementing fixes.
Machine Learningml-systemstime-seriesdebuggingevaluation - System DesignMediumModel answerRate Limiting an API Under Active Abuse
Design a layered rate limiter that blunts a traffic flood while keeping legitimate clients and anonymous users productive.
System Designrate-limitingdistributed-systemsdenial-of-servicesystem-design - Data Structure DesignMediumModel answerDesign a Multiset Trie with Fast Prefix Counting
Build a trie that tracks word multiplicities, supports insertion, deletion, exact and prefix lookup, and handles Unicode safely.
Data Structure Designtriedata-structuresconcurrencyunicode - System DesignMediumModel answerDesign a Live Multi-User Document Editor
Design the client and server for a collaborative text editor where multiple users edit the same document simultaneously and see each other's changes in near real time.
System Designcollaborative editingoperational transformationCRDTsreal-time sync - BehavioralHardModel answerRealigning a Team When a Deadline Moves and Scope Is Disputed
Walk through a specific project where an earlier deadline forced a scope negotiation among disagreeing stakeholders, and explain how you drove the team to a concrete decision.
Behavioralstakeholder managementscope negotiationleadership under pressure - BehavioralEasyModel answerCareer Vision, Manager Expectations, and Team Dynamics
Articulate your 3–5 year growth trajectory, define effective managers and teams, and explain how you drive decisions with data in ambiguous environments.
Behavioralleadershipcareer-developmentcollaborationinfluence - Arrays & HashingMediumAuto-gradedCount Members With Continuous Subscription at Final Timestamp
Tests per-entity state simulation where a subscription can only be renewed while still active, and any lapsed subscription is permanently void.
Arrays & Hashingsimulationhash-mapstate-machine