practice a little every day — you've got this ♡
Interview Practice Problems
Practice 6013 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.
- 6013
- Problems
- 2228
- Auto-graded
- 15
- Topics
- 273
- Added today
Showing 1471–1500 of 2228 results
- Stacks & QueuesMediumAuto-gradedBracket Nesting Check and Rotating Cipher
Tests stack-based bracket validation and modular arithmetic to rotate lowercase letters circularly across the alphabet.
Stacks & Queuesstacksstringsmodular-arithmetic - Stacks & QueuesMediumAuto-gradedCalculate Arithmetic Expression with Negation and Grouping
Tests building an operator-precedence parser using stacks to handle binary operations, unary negation, parentheses, and zero-truncating division.
Stacks & Queuesstacksparsingoperator-precedencestring-processing - Arrays & HashingMediumAuto-gradedCollapse Image Bursts and Rank a Content Stream
Tests the ability to merge consecutive same-user image posts into gallery items and then apply a stable descending-timestamp sort to the resulting stream.
Arrays & Hashingsimulationsortingtwo-pointers - SQL & DataMediumAuto-gradedAggregate Transactions by Country for Most Recent Active Period
Tests date handling, filtering, and grouped aggregation to find the latest month with successful records and summarize by region.
SQL & Dataaggregationdate-manipulationfiltering - Arrays & HashingMediumAuto-gradedTracking Aligned Prefix Moments in a Permutation Sequence
Tests the ability to recognize when a running maximum equals the current index in a permutation, using invariant reasoning to avoid simulation.
Arrays & Hashingpermutationsprefix-conditionrunning-maximuminvariants - StringsMediumAuto-gradedCheck Character Mapping Consistency
Tests whether two strings establish a valid one-to-one character correspondence at each position.
Stringshash-maptwo-pointersbijection - Data Structure DesignMediumAuto-gradedOut-of-Order Loan Event Ledger with Fee-First Payments
Tests ordered insertion, fee-before-principal payment allocation, and efficient forward-propagation of balance changes when events arrive out of sequence.
Data Structure Designsimulationsorted-insertdata-structure-design - StringsMediumAuto-gradedMinimum Edits to Form Palindromic Segments
Tests two-pointer logic and palindrome verification to compute the fewest replacements that transform every fixed-size segment into a palindrome.
Stringstwo-pointerspalindromegreedy - Math & Bit ManipulationMediumAuto-gradedOverflow-Safe Power with a Custom Modular Multiplier
Tests whether a candidate can build exponentiation from scratch using only 64-bit-safe addition and multiplication under an arbitrary modulus.
Math & Bit Manipulationmodular arithmeticbit manipulationexponentiation by squaring - Trees & GraphsMediumAuto-gradedConnected Land Regions on a Grid (8-Direction)
Tests graph traversal skills by counting connected components in a character grid where land cells are neighbours in all eight directions including diagonals.
Trees & Graphsgraph traversalBFS/DFSflood fillconnected components - SQL & DataMediumAuto-gradedUser Signup and Follower Metrics Report
Simulate three SQL analytics queries in Python: total users, busiest signup month (with tie-break), and the most-followed usernames including ties.
SQL & Dataaggregationgroupingcountingties - StringsMediumAuto-gradedVerify Anagram Coverage for All Contiguous Substrings
Tests whether every contiguous substring of length 3 or more in a given string can be rearranged to match some dictionary word.
Stringsanagramsprefix-sumhashing - SQL & DataMediumAuto-gradedWeekly Cohort Activity Retention Analysis
Group users by signup week, compute seven-day activity retention rates, and handle zero-retention cohorts correctly.
SQL & Datadata-analysiscohort-analysisretentionaggregation - Math & Bit ManipulationMediumAuto-gradedFour Numbers, One Target: Arithmetic Reachability
Tests combinatorial search over arithmetic expressions, exact rational arithmetic, and division-by-zero handling to decide if four numbers can combine to a target.
Math & Bit Manipulationbacktrackingrecursionmath - Data Structure DesignHardAuto-gradedIn-Memory Row Store with Filter, Sort, and Projection
Tests ability to build a stateful table abstraction that processes insert and query operations with filtering, sorting, and column projection.
Data Structure Designdesignsimulationsorting - Arrays & HashingMediumAuto-gradedFind All Triplets That Sum to a Target Value
Tests efficient two-pointer technique with sorted arrays, duplicate handling, and edge-case reasoning.
Arrays & Hashingtwo-pointerssortingdeduplication - Math & Bit ManipulationEasyAuto-gradedSteady-State Junction Temperature With and Without Heatsink
Compute a component's junction temperature from power dissipation and series thermal resistances, both before and after adding a heatsink.
Math & Bit Manipulationthermal-modelingarithmeticembedded-systemssteady-state - Heaps, Sorting & SearchMediumAuto-gradedGrouped Median Property Price by Region
Tests ability to compute per-group medians over a list of records, correctly handling odd/even counts, duplicate values, and half-up rounding to two decimal places.
Heaps, Sorting & Searchsortinggroupingmediandecimal-precision - Trees & GraphsMediumAuto-gradedGroup Accounts by Shared Identity Fields
Tests the ability to model transitive relationships between records using Union-Find (DSU) to identify connected components linked by shared attribute values.
Trees & Graphsunion-findconnected-componentshashing - StringsEasyAuto-gradedArrange Garment Sizes in Standard Order
Tests understanding of counting sort for a fixed alphabet, achieving linear time complexity instead of comparison-based sorting.
Stringscounting-sortstring-manipulationlinear-time - Data Structure DesignMediumAuto-gradedSimulate a Fixed-Capacity Recency-Eviction Cache
Tests whether you can combine a hash map and ordered structure to implement O(1) get/put with least-recently-used eviction on a bounded cache.
Data Structure Designhash-maplinked-listcachedesign - Arrays & HashingMediumAuto-gradedLongest Circular Run of Ones with One Flip
Tests sliding window technique on a circular binary array to find the maximum consecutive ones achievable by flipping at most one zero.
Arrays & Hashingsliding-windowcircular-arraytwo-pointers - Heaps, Sorting & SearchMediumAuto-gradedK Most Common Values in an Array
Tests frequency counting and top-k selection using hash maps, heaps, or bucket sort, including complexity trade-off reasoning.
Heaps, Sorting & Searchhash-mapheapbucket-sort - Arrays & HashingMediumAuto-gradedMaximum Vacation Length and Efficient Distinct Value Counting
Tests sliding window technique for contiguous subarrays with constraints and binary search optimization for counting distinct values in sorted arrays.
Arrays & Hashingsliding-windowbinary-searchtwo-pointeroptimization - Trees & GraphsMediumAuto-gradedFind the Hub Node in a Star-Shaped Network
Tests recognition of star-graph topology and the insight that the central node is uniquely identified by its degree.
Trees & Graphsgraphsdegreestar-graph - Arrays & HashingMediumAuto-gradedLongest Subarray with Bounded Pairwise Spread
Tests ability to use the two-pointer (sliding window) technique to find the longest contiguous subarray where the difference between the max and min elements stays within a given limit.
Arrays & Hashingarraystwo pointerssliding window - Greedy & IntervalsMediumAuto-gradedMaximize Total Score by Pairing Players Optimally
Tests whether a candidate can apply a greedy sort-and-pair strategy to maximize the sum of pair minimums across a list of player ratings.
Greedy & Intervalsgreedysortingarrays - Arrays & HashingHardAuto-gradedTiered Subscription Invoice with Mid-Cycle Proration
Tests ability to combine prorated flat fees with two-tier volume pricing over a half-open time window.
Arrays & Hashingsimulationmathaggregation - StringsMediumAuto-gradedLongest Uniform Stretch With a Swap Budget
Tests efficient sliding-window reasoning to find the longest substring that can be made all one character using at most k single-character replacements.
Stringssliding-windowstringsfrequency-counting - Trees & GraphsMediumAuto-gradedFind the Bottleneck Weight Between Two Nodes
Compute the smallest possible maximum edge weight along any path connecting two vertices in a weighted undirected graph.
Trees & Graphsgraphunion-findgreedybottleneck-path