practice a little every day — you've got this ♡
Coding Interview Problems
Practice 5969 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.
- 5969
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 601–630 of 650 results
- Data Structure DesignMediumModel answerDesign a Fixed-Heap Memory Manager
Build malloc and free over a fixed byte array, comparing allocation strategies and analyzing fragmentation trade-offs.
Data Structure Designmemory-managementdata-structurescomplexity-analysis - StringsEasyModel answerHTTP Field Extraction with IP Address Frequency Analysis
Retrieve text fields from multiple endpoints, parse and validate IPv4 addresses, then rank them by occurrence frequency.
Stringsstring-parsinghttpvalidationfrequency-counting - Math & Bit ManipulationHardModel answerBuild an IP Address Calculator Without Libraries
Create a utility to parse, compute offsets, and analyze CIDR blocks for IPv4 and IPv6 addresses using integer arithmetic, no networking libraries allowed.
Math & Bit Manipulationbit-manipulationparsingnetworkinginteger-arithmetic - Data Structure DesignMediumModel answerBuild a Rule-Based Board Game State Manager
Design an immutable, thread-safe game engine with pluggable validation rules for a turn-based strategy game.
Data Structure Designobject-oriented-designimmutabilitystrategy-patternconcurrency - Data Structure DesignMediumModel answerBinary Protocol for String Dictionary Persistence
Build a binary encoder and decoder for string dictionaries with strict validation of format integrity, size bounds, and key ordering.
Data Structure Designserializationbinary-protocolsvalidationdata-structures - Data Structure DesignMediumModel answerBuild Directory Tree Operations with Path Parsing
Implement directory creation and listing for an in-memory hierarchical structure with automatic parent creation and path normalization.
Data Structure Designtreetriepath-parsingstring-manipulation - Data Structure DesignMediumModel answerAd Targeting Engine and Route Optimization
Build an ad matcher with inverted indexes and a delivery router using shortest-path precomputation plus TSP heuristics.
Data Structure Designindexinggraphsoptimizationtrade-offs - Data Structure DesignMediumModel answerBuild a Thread-Safe In-Memory Cache with TTL Expiry
Design and implement a concurrent key-value store that supports optional per-entry expiration, lazy eviction, and background memory reclamation.
Data Structure Designconcurrencyttlheapeviction - Data Structure DesignMediumModel answerDesign a Fluent Query Builder with Chaining and Join Support
Build a Python query builder that chains table, select, where, alias, and join methods, rendering to SQL strings that match an exact expected format.
Data Structure Designapi-designfluent-interfacesql-generation - Data Structure DesignMediumModel answerRate Limiter with Continuous Drainage Pattern
Build a request throttler that drains at a fixed rate, accepting requests only when space exists, first single-threaded then thread-safe.
Data Structure Designrate-limitingconcurrencytime-based-statetesting - StringsMediumModel answerGenerator-Based Parser for Structured Log Streams
Build a memory-efficient Python generator that parses log records with timestamps and key-value pairs, handling quoted strings with escapes.
Stringsparsinggeneratorsstring-processingtext-processing - Heaps, Sorting & SearchMediumModel answerBudget-Constrained Selection and Graph Distance Query
Find how many sorted items fit within a budget using prefix sums and binary search, then parse a graph and compute the shortest path between two nodes.
Heaps, Sorting & Searchbinary-searchdijkstraprefix-sumshortest-path - Data Structure DesignMediumModel answerSparse Matrix Implementation with Operations
Build a memory-efficient representation for sparse matrices and implement addition, multiplication, and display operations.
Data Structure Designsparse-matrixdictionarymatrix-operations - Heaps, Sorting & SearchMediumModel answerOptimal Order Fulfillment with Decaying Prices
Determine the maximum revenue when fulfilling orders from inventory where each item's price equals its current stock level and decreases with each sale.
Heaps, Sorting & Searchbinary-searchgreedymathpriority-queue - Data Structure DesignMediumModel answerReal-Time List Filter with Dynamic Maximum Highlighting
Create a filterable transaction list that automatically highlights entries with the highest amount among currently visible results.
Data Structure Designfrontendstate-managementfilteringui-components - Data Structure DesignMediumModel answerContiguous Range Manager with Dynamic Resizing
Build a system to manage named, non-overlapping contiguous ranges over a fixed ID space with dynamic resizing that minimally shifts neighbors.
Data Structure Designrange-managementgreedyarraysystem-design - Data Structure DesignMediumModel answerTransaction Policy Engine Design and Implementation
Build a configurable rule engine that evaluates financial transactions against spending policies and returns approval decisions in real-time.
Data Structure Designrule-enginepolicy-evaluationsystem-designdata-structures - Data Structure DesignMediumModel answerFrame-Based Media Player in JavaScript
Build a JavaScript controller for frame-by-frame playback with play, pause, seek, and configurable FPS, handling timer accuracy and state management.
Data Structure Designjavascripttimersclosuresapi-design - Data Structure DesignMediumModel answerText Editor with Undo and Word Suggestions
Build a text editor class supporting character insertion, deletion, cursor movement, undo/redo operations, and prefix-based word autocompletion.
Data Structure Designdata-structurestrieundo-redogap-buffer - Data Structure DesignMediumModel answerParallel Job Scheduler with Dependency Management
Build a concurrent task executor that honors dependencies, enforces worker limits, and propagates failures through dependent jobs.
Data Structure Designconcurrencygraphstopological-sort - Data Structure DesignMediumModel answerFrequency Tracking with Static and Streaming Top-K Retrieval
Build data structures to identify the most frequent elements in three scenarios: a fixed array, an unbounded stream, and a time-windowed stream.
Data Structure Designfrequency-countingheapssliding-windowstreaming-algorithms - StringsMediumModel answerRemove Paths by Prefix Hierarchy
Remove all paths that match or fall under any deletion target in a hierarchical filesystem-like structure.
Stringstrieprefix-matchingstring-processing - Data Structure DesignMediumModel answerIn-Memory Payroll Tracker with Partial Settlement
Build an object-oriented service to log driver work intervals, compute wages, and process payments while preventing double-pay and handling overlaps.
Data Structure Designobject-oriented-designtime-intervalsmoney-arithmeticstate-management - Trees & GraphsHardModel answerNavigate Between Nodes in a Recursively Defined Binary Tree
Determine the path between two nodes in a Fibonacci-style binary tree using only their preorder indices, without building the tree in memory.
Trees & Graphsbinary-treesrecursionfibonaccitree-traversal - Data Structure DesignMediumModel answerBuilding Robust Autocomplete Query Management
Design and implement the query-handling layer for an autocomplete component with debouncing, retry logic, response ordering, and result caching.
Data Structure Designasynccachingstate-management - Data Structure DesignMediumModel answerConcurrent In-Memory Cache with Sharded Locking
Build a thread-safe in-memory cache supporting concurrent reads and writes, choosing data structures and synchronization primitives to minimize contention.
Data Structure Designconcurrencythreadinglockingdata-structures - Data Structure DesignMediumModel answerC++ Implementation Details: Containers and Polymorphism
Explain the internal mechanics of std::vector growth, std::unordered_map collision handling, and virtual function dispatch in C++.
Data Structure Designc++data-structuresperformancememory - Data Structure DesignMediumModel answerBanking API with Thread-Safe Account Operations
Build a thread-safe banking system supporting account creation, deposits, and transfers with atomic balance updates.
Data Structure Designconcurrencythreadinglocksdata-structures - Data Structure DesignMediumModel answerBuild Iterator Abstractions and Composed Traversals
Design an iterator protocol from scratch, implement concrete iterators with different traversal logic, and extend them with features like peeking, filtering, and flattening.
Data Structure Designiteratorsinterface-designlazy-evaluation - Data Structure DesignMediumModel answerFix a Ride Dispatch Selection Bug
Reproduce and fix a bug causing incorrect driver-to-order matching in a delivery assignment service.
Data Structure Designdebuggingtestingconcurrencydistributed-systems