practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6010 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.
- 6010
- Problems
- 2227
- Auto-graded
- 15
- Topics
- 275
- Added today
Showing 691–720 of 2227 results
- Data Structure DesignMediumAuto-gradedDesign a Dispatch Queue for Autonomous Taxi Requests
Simulate an event-driven dispatching system that maintains pending requests ordered by pickup time and processes state updates efficiently using heaps and hash maps.
Data Structure Designheaphash-tabledesignsorting - Greedy & IntervalsMediumAuto-gradedCombine Overlapping Ranges and Count Unique Land Shapes
Merge overlapping or touching closed ranges, and count land regions in a binary grid that differ in shape when only shifting is allowed.
Greedy & Intervalsintervalssortingdfsgrid - Arrays & HashingEasyAuto-gradedFind the Maximum Value in a Large Numerical Stream
Find the maximum integer in a sequence while accounting for empty inputs and signed values.
Arrays & Hashingarraysstreamingbasics - Math & Bit ManipulationEasyAuto-gradedIs This Dice Wager Worth Playing? Expected Value Check
Count outcomes of a two-dice contest where ties favor the house, compute the expected profit per round, and decide whether a risk-neutral player should take the bet.
Math & Bit Manipulationprobabilityexpected-valuemathcounting - Arrays & HashingEasyAuto-gradedIdentify Redundant Files by Content Matching
Cluster files that share identical byte contents by filtering first on file size metadata and then hashing content.
Arrays & Hashingarrayshash mapstrings - Linked ListsMediumAuto-gradedDuplicate Linked List with Arbitrary Pointers
Demonstrate deep copying of a sequential structural chain featuring auxiliary target links via node-level or serialized array transformations.
Linked Listslinked-listsarraysdeep-copy - Data Structure DesignHardAuto-gradedLeftmost-Fit Block Reservation with Owner Release
Simulate a storage pool that reserves the leftmost run of contiguous free cells per request and releases everything an owner holds, using efficient free-run tracking.
Data Structure Designsegment-treesimulationinterval-merginghash-map - Greedy & IntervalsMediumAuto-gradedMinimum Resources Required for Scheduled Jobs
Determine the minimum number of resources required to run a schedule of tasks given start and end times with boundary reuse allowed.
Greedy & Intervalsgreedy-intervalsheaps-sortingarrays - Data Structure DesignMediumAuto-gradedTally Unique Words Using Your Own Open-Addressing Table
Count unique strings in a list by building a custom hash table with probing, without using built-in sets, dictionaries, or similar lookup containers.
Data Structure Designhash-tableopen-addressingstringshashing - Math & Bit ManipulationEasyAuto-gradedGaussian Fit Summary: Mean and Two Variance Estimates
Compute the sample mean, the divide-by-n variance, and the divide-by-(n-1) variance from a list of numbers, tying MLE for a normal model to Bessel's correction.
Math & Bit Manipulationstatisticsmatharraysfloating-point - Math & Bit ManipulationMediumAuto-gradedSimulate IPv4 CIDR Block Iterator
Parse IPv4 CIDR blocks and simulate step-by-step traversal over all IP addresses in the subnet range.
Math & Bit Manipulationbit-manipulationstringsdesignmath - Dynamic ProgrammingMediumAuto-gradedFull-String Matching With Single and Multi Character Wildcards
Decide whether a pattern containing '?' and '*' wildcards matches an entire string, testing dynamic programming or greedy two-pointer matching with backtracking.
Dynamic Programmingstringswildcard-matchingdynamic-programminggreedy - Stacks & QueuesHardAuto-gradedDetermine Pass Times for Single-Lane Security Gate
Simulate the scheduling of access requests through a shared resource using state tracking and queues under conflict-resolution rules.
Stacks & Queuesstacks-queuessimulationarrays - Dynamic ProgrammingHardAuto-gradedMinimal Coin Exchange with Overpayment
Find the minimum combined count of paid and received coins to settle a precise target value using dynamic programming.
Dynamic Programmingdynamic-programmingarrays - Data Structure DesignMediumAuto-gradedSliding Window Score Monitor for Support Chats
Process a stream of score updates and queries, returning the rolling average and maximum over the latest score of each chat inside a half-open time window.
Data Structure Designsliding-windowhash-mapqueuelazy-deletion - Trees & GraphsEasyAuto-gradedNavigate Web Server Maze to Target Node
Evaluates breadth-first graph search and set tracking to traverse a network of web pages and find an exit target.
Trees & Graphstrees-graphsbreadth-first-searchhash-map - Arrays & HashingMediumAuto-gradedPeel a Grid Layer by Layer in a Clockwise Spiral
Flatten a rectangular grid into a list by walking its perimeter clockwise inward, using shrinking boundaries and guards so single leftover rows or columns are not read twice.
Arrays & Hashingmatrixsimulationtwo-pointersspiral - Arrays & HashingMediumAuto-gradedCohort Return Rates by Months Since First Visit
Group users by the month of their first activity, then compute the fraction of each cohort that was active in every later month offset, using calendar-month arithmetic.
Arrays & Hashinghash-mapgroupingdatescohort-analysis - 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 - 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 - 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 - 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 - 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 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 - 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 - Arrays & HashingEasyAuto-gradedOrder Each Neighboring Couple in a List, Skipping a Lone Tail
Reorder the two values inside every consecutive couple of a list so the smaller comes first, keeping couples in place and leaving an unpaired final value alone.
Arrays & Hashingarraystwo-pointerssimulationindex-handling