practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6056 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.
- 6056
- Problems
- 2241
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1471–1500 of 6056 results
- Data Structure DesignMediumModel answerHow Hash Tables Handle Collisions, Deletes, and Growth
Walk through hash table internals: index mapping, chaining versus linear probing, safe deletion, load-factor resizing, and when operations degrade from O(1) to O(n).
Data Structure Designhash-tablecollision-resolutionlinear-probingload-factor - Stacks & QueuesMediumModel answerTroubleshooting Silent Execution in Python Async Workflows
Analyze and fix a Python async script that finishes silently without invoking its async functions, and explore concurrent execution options with asyncio.
Stacks & Queuespythonasyncioconcurrencydebugging - Machine LearningMediumModel answerMechanics of Positional Encodings in Transformer Architectures
Understand Transformer positional encodings, including self-attention permutation properties, sinusoidal vs. learned schemes, linear shift derivations, and relative methods.
Machine Learningtransformerspositional-encodingattentiondeep-learning - System DesignMediumModel answerDesign a Real-Time Gaming Leaderboard Engine
Architect a high-throughput, low-latency leaderboard platform handling tens of millions of active players and millions of concurrent score updates.
System Designsystem-designrediscachingdistributed-systems - Data Structure DesignHardModel answerBoolean Condition Trees for a Spending Policy Checker
Design a data-driven policy engine whose rules combine field checks with nested AND, OR and NOT, covering representation, validation, missing-field behavior and explainable results.
Data Structure Designexpression-treerules-enginevalidationboolean-logic - System DesignMediumModel answerDesign a Real-Time IP Blacklist and CIDR Lookup Engine
Design a scalable, low-latency API and propagation architecture to block malicious IP addresses and CIDR ranges across distributed edge nodes.
System Designsystem-designcachingnetworkingdistributed-systems - Trees & GraphsMediumAuto-gradedTally Separate Clusters of Occupied Cells in a Grid
Count groups of orthogonally touching '1' cells in a character grid, a connected-components task solved with an iterative flood fill or union-find.
Trees & Graphsgraphbfsgridconnected-components - Data Structure DesignMediumAuto-gradedHourly Courier Pay Ledger with Settlement Watermark
Simulate a payroll ledger that records work intervals, tracks accrued cost, and settles wages up to a cutoff time without double-paying.
Data Structure Designdesignsimulationintervalsidempotency - Machine LearningEasyModel answerCore ML Fundamentals: Generalization, Imbalance, and Missingness
A foundational machine learning assessment covering model capacity trade-offs, handling heavily skewed class distributions, and processing incomplete data features.
Machine Learningbias-varianceclass-imbalancemissing-datamachine-learning - Arrays & HashingEasyAuto-gradedPair Sum Existence Check in an Integer List
Decide whether any two elements at different positions in an integer list add up to a given value, testing hash-set lookups and careful handling of duplicates.
Arrays & Hashinghash-settwo-sumarrayscomplement - Data Structure DesignMediumAuto-gradedReplay Commands on a Fixed-Bucket Key-Value Store
Simulate a hand-built key-value store with a fixed bucket count by replaying a command log, handling collisions and overwrites correctly without a built-in dictionary.
Data Structure Designhash-tableseparate-chainingsimulationdesign - Data Structure DesignMediumModel answerC++ Polymorphism: Overridable Methods vs Mandatory Interface Methods
Explain how C++ virtual and pure virtual functions differ, how vtable dispatch works, when a class is abstract, and how virtual destructors affect safe cleanup.
Data Structure Designcpppolymorphismvtableabstract-classes - Machine LearningMediumModel answerRanking a Design Gallery and Turning Prompts into Safe UI Snippets
Design an ML system that ranks a creative community's feed and also converts natural-language requests into validated, safe HTML/CSS components, including evaluation and feedback loops.
Machine Learningml-system-designrecommendationrankingllm - System DesignMediumModel answerExpose a Local FastAPI Service as Tools for a Voice AI Agent
Design and harden two HTTP tool endpoints that let a hosted conversational agent store a user's reported problem and recite earlier ones, with a local server made reachable.
System Designfastapillm-toolsapi-designidempotency - System DesignMediumModel answerHierarchical Sliding-Window Throttle for Outbound Alerts
Design a distributed throttle that accepts or rejects alerts using exact 10-minute rolling limits for a user, their team and their company, atomically and correctly across many stateless servers.
System Designrate-limitingdistributed-systemssliding-windowatomicity - System DesignMediumModel answerIdentify Duplicate Files Across a File System and Analyze System Bottlenecks
Design an algorithm to find all groups of identical files in a directory tree while handling massive files, edge cases, and analyzing CPU versus disk I/O performance.
System Designfile-systemhashingio-performanceconcurrency - BehavioralMediumModel answerDeciding Under Uncertainty: Acting Safely on Partial Information
Describe a high-stakes engineering or product call you made without complete data, how you limited the downside, and what the result taught you.
Behavioralbehavioraldecision-makingrisk-managementambiguity - SQL & DataMediumAuto-gradedAnalyze Live Streaming Telemetry and Viewing Events
Process minute-level streaming activity and viewer events to calculate time-series metrics, category shares, month-over-month growth, and joined yearly summaries.
SQL & Datadata-aggregationtime-seriesjoinsanalytics - System DesignHardModel answerDesign a PDF-to-Markdown Document Conversion System
Design a scalable, multi-stage document processing architecture to transform complex PDFs into Markdown across synchronous streaming and asynchronous batch workflows.
System Designsystem-designmachine-learningdistributed-systemsstreaming - System DesignMediumModel answerBuild a Multi-User Live Text Editor Backend
Design a backend that lets many people edit one document at once with fast sync, offline tolerance, durable storage, and version history.
System Designsystem-designreal-timecrdtoperational-transformation - Data Structure DesignMediumModel answerDesign a Resilient In-Memory Task Queue with Worker Failure Handling
Build a thread-safe, in-process job queue that handles worker crashes, lease timeouts, late reports, and retry bounds using deterministic testing mechanics.
Data Structure Designdesign-dsstacks-queuesconcurrencythreads - Dynamic ProgrammingMediumAuto-gradedLongest Eastward Chain of Cities from Raw CSV Text
Parse CSV text with quoted fields, then find the longest chain of cities with increasing longitude and non-decreasing latitude, breaking ties by the smallest list of names.
Dynamic Programmingcsv-parsinglongest-increasing-subsequencedag-dplexicographic-tiebreak - BehavioralMediumModel answerWriting Achievement Bullets, a Project Tour, and a Technical Walkthrough
Prepare three short impact statements, a five-minute tour of your last two years of work, and a 30-minute project presentation that survives rapid, detailed technical follow-up questions.
Behavioralbehavioralproject-storytellingownershipimpact - System DesignMediumModel answerCrash-Safe Refund Pipeline as a Resumable Task Graph
Design a fault-tolerant orchestration service that runs a refund as a dependency graph of steps, survives worker crashes, avoids double refunds, and handles failure and versioning.
System Designworkflow-engineidempotencyoutbox-patternsaga - System DesignMediumModel answerBuild a Petabyte-Scale Blob Storage Service
Design a distributed blob storage service with put, get, delete and list, covering metadata, data placement, multipart uploads and the trade-off between replication and erasure coding.
System Designsystem-designdistributed-storageerasure-codingpartitioning - Data Structure DesignMediumAuto-gradedTicket Ranges: Find the Bucket Owning Each Draw
Map integer draws to the index whose cumulative weight range contains them, using prefix sums and binary search, driven through a batch of init/query operations.
Data Structure Designprefix-sumbinary-searchdesignbisect - Statistics & ExperimentsMediumModel answerSupport Ticket Analytics: Root Causes, Refund Impact, Chatbot Test
Join ticket, resolution and survey tables to find the worst complaint category, estimate a refund policy's causal effect from observational data, and design a chatbot A/B test.
Statistics & Experimentsab-testingcausal-inferencesqlmissing-data - BehavioralEasyModel answerRecruiter Call: Your Pitch, Motivation, Traits, and Java Level
Practice a recruiter screen for a Java-focused software engineer role: a short pitch, your motivation, two strengths, one weakness, and an honest Java self-rating backed by coursework.
Behavioralbehavioralhr-screenself-introductionself-assessment - Dynamic ProgrammingMediumAuto-gradedOptimal Closed Tour Cost Across Directed Locations
Find the minimum cost to complete a full circuit starting and ending at node 0, visiting all other nodes exactly once with asymmetric leg costs.
Dynamic Programmingdynamic-programmingbit manipulationgraph - Data Structure DesignMediumAuto-gradedClosest Pair Gaps Between Words in a Fixed List
Answer many closest-index-distance queries over a fixed word list by building a position index, precomputing same-word gaps, and binary searching the smaller list.
Data Structure Designinverted-indexbinary-searchpreprocessinghash-map