practice a little every day — you've got this ♡
Coding Interview Problems
Practice 5971 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.
- 5971
- Problems
- 2211
- Auto-graded
- 15
- Topics
- 272
- Added today
Showing 61–90 of 2111 results
- Arrays & HashingMediumAuto-gradedFind Members Missing a Nearby Provider Specialty
Given providers and members on a 2D plane, find members with a required specialty that has no provider within a distance limit, using hashing and spatial grouping.
Arrays & Hashinghashinggeometrygrid-bucketingsimulation - Data Structure DesignMediumAuto-gradedIn-Memory Bank Ledger with Pending Transfers and Expiry
Simulate an in-memory banking system processing sequential operations, pending transfers with fixed-window expiration, and account activity tracking.
Data Structure DesignData StructuresSimulationDesignHash Table - Data Structure DesignEasyAuto-gradedDuel Resolver: Speed, Types and Chip Damage
Simulate a two-creature duel with fixed speed order, a minimum-damage floor, and a type-advantage multiplier, then return the winner's name.
Data Structure Designsimulationdictionariesfloating-pointgame-logic - Trees & GraphsMediumAuto-gradedMerge Accounts Into Groups via Weighted Field Matching
Group records into clusters where records are linked when their name/email match score reaches a cutoff, using union-find and bucketing on exact field values.
Trees & Graphsunion-findconnected-componentsgraphhashing - Trees & GraphsMediumAuto-gradedAnticlockwise Perimeter Walk of an Index-Based Binary Tree
Compute the anticlockwise perimeter of a binary tree given as child-index arrays, combining root, left edge, leaves and right edge without duplicates.
Trees & Graphsbinary-treetree-traversaldfsiterative - Dynamic ProgrammingHardAuto-gradedMaximize Priority Sum of Non-Overlapping Tasks
Find the maximum priority total achievable among non-overlapping interval tasks, prioritizing task count first then total priority.
Dynamic Programmingdynamic-programminggreedy-intervalsbinary-search - Data Structure DesignMediumAuto-gradedSimulate a Stateful Banking Ledger with Queued Payments
Simulate an in-memory banking system handling accounts, balances, scheduled payments via a priority queue, and account merges.
Data Structure Designheaphash-tablesimulationdesign-ds - Heaps, Sorting & SearchEasyAuto-gradedLocate Element in Sorted Array
Perform logarithmic-time binary search on a strictly increasing array of distinct integers to find a target value's index or detect its absence.
Heaps, Sorting & Searchbinary-searcharrayssearching - Arrays & HashingEasyAuto-gradedLongest Strictly Rising Streak in a Row of Readings
Scan an integer list once to find the longest block of adjacent, strictly rising values, handling empty input, equal neighbors, and runs that reach the end.
Arrays & Hashingarrayssliding-windowtwo-pointerslinear-scan - StringsMediumAuto-gradedSpoken Amount Decoder: English Words to Signed Integer
Parse an English number phrase (up to millions, optional "negative" prefix) into its integer value using a single left-to-right pass with group accumulators.
Stringsstring-parsingtokenizationhash-mapsimulation - Trees & GraphsMediumAuto-gradedSmallest-ID Study Order for One Goal Course
Restrict a dependency graph to the ancestors of one goal node, then produce the smallest-ID-first topological order, or an empty list if a cycle blocks it.
Trees & Graphstopological-sortgraphheapcycle-detection - Math & Bit ManipulationMediumAuto-gradedWhole-Share Rebalancing for a Fractional Stock Ledger
Simulate customer buy and sell orders against fractional inventory, trading only whole shares with the market, and emit ordered transfer logs and final balances.
Math & Bit Manipulationsimulationstring-parsinginteger-arithmetichash-map - Arrays & HashingMediumAuto-gradedFirst-Week Post Totals and Week-Later Return Share
Group dated activity rows by user, find each user's earliest date, total posts in the first seven days, and compute the share of users active on day 7 or later.
Arrays & Hashinghash-mapdatesaggregationcohort-analysis - Trees & GraphsMediumAuto-gradedLandmass Tally: Count Regions and Find the Biggest
Count 4-connected groups of land cells in a binary grid and report the area of the largest group, testing graph traversal with correct visited-state handling.
Trees & Graphsgraphdfsbfsgrid - Data Structure DesignMediumAuto-gradedRLE Vector Dot Product and Execution Log Processor
Compress sparse sequences into run-length encodings, calculate their dot product, and analyze nested call timestamps using a call stack.
Data Structure Designarraysstackstwo-pointersdesign-ds - Heaps, Sorting & SearchEasyAuto-gradedLocate the Span of a Value in a Sorted List
Use binary search to find the first and last positions of a value in a sorted list in logarithmic time, returning [-1, -1] when it is absent.
Heaps, Sorting & Searchbinary-searchsorted-arrayboundaries - Greedy & IntervalsMediumAuto-gradedCoalesce Overlapping Ranges Into Disjoint Spans
Combine unsorted inclusive integer ranges that share at least one point into disjoint spans ordered by start, testing endpoint handling, chained merges, and nesting.
Greedy & Intervalsintervalssortinggreedysweep - StringsEasyAuto-gradedAccess Log Health Report with Strict Line Validation
Validate access-log lines field by field, then count client errors, server errors, invalid lines and the failure percentage over the valid lines only.
Stringsstringsparsingvalidationsimulation - Trees & GraphsMediumAuto-gradedShortest Word Chain Allowing One or Two Letter Swaps
Find a shortest word chain where each step swaps one or two letters, with a fixed tie-break, using BFS on an implicit graph and wildcard bucketing for fast neighbor lookup.
Trees & Graphsbfsshortest-pathstringshashing - Data Structure DesignMediumAuto-gradedImplement a Timed Workspace Credit System
Process a sequence of timestamped operations managing workspace balances, immediate transfers, scheduled/cancelled future transfers, and ranked queries.
Data Structure Designheaps-sortingdesign-dsarrays - Data Structure DesignMediumAuto-gradedSpaced Points Stream: Cancel a Nearby Point or Insert
Maintain a dynamic ordered set of numbers and, per arrival, find the smallest stored value in a closed window around it, deleting it or inserting the newcomer.
Data Structure Designordered-setbalanced-bstbinary-searchstreaming - Data Structure DesignMediumAuto-gradedTrade Join With Expiring Partial Records
Simulate a stream join that pairs order and price events by ID, using a min-heap with lazy deletion to expire unmatched partial records.
Data Structure Designhash-mapheapsimulationstream-processing - Math & Bit ManipulationMediumAuto-gradedCheapest Acorn Delivery Route for a Chipmunk on a Grid
Compute the minimum total steps to ferry every item to a single target cell on an open grid, carrying one at a time, using Manhattan distances and a smart choice of the first pickup.
Math & Bit Manipulationgreedymanhattan-distancegridmath - Heaps, Sorting & SearchMediumAuto-gradedCombine Several Ascending Sequences into One Sorted Sequence
Merge k individually sorted integer arrays into a single sorted array, testing heap-based k-way merging or pairwise divide-and-conquer and the associated complexity analysis.
Heaps, Sorting & Searchheapk-way-mergedivide-and-conquersorting - StringsMediumAuto-gradedFewest Letter Swaps to Rearrange One Word Into Another's Letters
Count letter frequencies in two equal-length strings to find the fewest in-place letter replacements that make the second string an anagram of the first.
Stringsstringshash-mapfrequency-countinganagram - Greedy & IntervalsMediumAuto-gradedOpen Half-Hour Slots from Weekly Hours and Bookings
Expand a weekly schedule over a date range and subtract booked intervals to list every free, half-hour-aligned 30-minute slot in chronological order.
Greedy & Intervalsintervalsdatetimesimulationsorting - StringsEasyAuto-gradedMirror Check Ignoring Punctuation and Letter Case
Check whether a string is a palindrome when only letters and digits count and case is ignored, using two pointers with constant extra space.
Stringstwo-pointersstringspalindrome - Arrays & HashingEasyAuto-gradedLedger Replay Cleanup: Apply Each Payment Event Once
Process a stream of possibly redelivered payment events and compute final account balances by applying each unique event ID only once.
Arrays & Hashinghash-sethash-mapdeduplicationsimulation - Data Structure DesignMediumAuto-gradedRanking Frequent Event Names Within a Time Window
Simulate a stream of timestamped log events and answer window queries for the k most frequent messages, with ties broken alphabetically, using binary search over a sorted log.
Data Structure Designdesignbinary-searchhash-mapsorting - Heaps, Sorting & SearchMediumAuto-gradedGreedy Tile Placement Across Parallel Lanes
Simulate placing items one by one into the currently lowest lane, breaking ties by lowest index, and report each lane's final total using a min-heap.
Heaps, Sorting & Searchheapgreedysimulationpriority-queue