practice a little every day — you've got this ♡
Math & Bit Manipulation 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
- 273
- Added today
Showing 181–210 of 217 results
- Math & Bit ManipulationMediumAuto-gradedResidue Distribution of Dice Sums and 2×2 Stochastic Determinants
Tests whether a candidate can compute modular probability distributions over two-dice outcomes and derive the determinant formula for a constrained matrix class.
Math & Bit Manipulationprobabilitylinear-algebramodular-arithmetic - Math & Bit ManipulationEasyAuto-gradedUnit Sales Target After Fixed Cost Increase
Tests cost-volume-profit analysis by computing last period's profit and the sales volume needed to maintain that profit when fixed costs rise.
Math & Bit Manipulationmathbusiness-logicformulas - Math & Bit ManipulationEasyAuto-gradedCalculate Weight in a Nested Balanced Mobile System
Tests systematic application of balance constraints in a multi-level mobile where equal-arm bars divide weight evenly.
Math & Bit Manipulationalgebrarecursionmathlogic - Math & Bit ManipulationEasyAuto-gradedDigital Root via Modular Arithmetic
Tests understanding of modular arithmetic by computing the digital root of a large integer without repeatedly summing digits in a loop.
Math & Bit Manipulationmathmodular arithmeticnumber theory - Math & Bit ManipulationMediumAuto-gradedBalanced Digit Sum Across All Bases
Tests understanding of base conversion by summing digits of a number across every base from 2 to b and checking whether each base yields a digit sum equal to a target value.
Math & Bit Manipulationmathbit manipulationbase conversion - Math & Bit ManipulationEasyAuto-gradedCalculate Binomial Cumulative Probability for Limited Supply
Tests understanding of binomial distributions and computing cumulative probabilities for discrete independent events.
Math & Bit Manipulationprobabilitybinomial-distributioncombinatorics - Math & Bit ManipulationMediumAuto-gradedAnti-Diagonal Cell in Outward Spiral Matrix
Finding a specific value in a spiral-filled matrix using mathematical properties of concentric rings rather than simulation.
Math & Bit Manipulationmatrixspiralmathclosed-form - Math & Bit ManipulationMediumAuto-gradedDesert Transport: Maximum Cargo Delivery with Consumption Cost
Tests piecewise optimization and depot strategy when a vehicle with limited capacity must transport goods while consuming resources proportional to distance traveled.
Math & Bit Manipulationoptimizationmathgreedysimulation - Math & Bit ManipulationMediumAuto-gradedConvert Absolute-Value Penalty to Linear Program Constraints
Transform a portfolio optimization model with absolute-value transaction costs into standard linear programming form using auxiliary variables.
Math & Bit Manipulationlinear-programmingoptimizationmathematical-modeling - Math & Bit ManipulationMediumModel answerClassifying Circle Pair Relationships
Determine whether two circles intersect at two points, are tangent at one point, or have no boundary contact.
Math & Bit Manipulationgeometrydistanceedge-casesnumerical-stability - Math & Bit ManipulationEasyAuto-gradedCount Animals from Legs and Population Ratios
Tests setting up and solving a system of linear equations with fixed ratios between variables.
Math & Bit Manipulationalgebralinear-equationsconstraint-satisfaction - Math & Bit ManipulationMediumAuto-gradedFind Non-Overlapping String Pairs by Letter Sets
Evaluates efficient character set representation using bit manipulation and frequency-based combinatorial counting.
Math & Bit Manipulationbit-manipulationarraysstringshashing - Math & Bit ManipulationEasyAuto-gradedAverage Arc Length Containing a Fixed Point on a Circle
Tests understanding of geometric probability, the inspection paradox, and computing expectations when a random partition is observed from a fixed viewpoint.
Math & Bit Manipulationprobabilitygeometryexpectationinspection-paradox - 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 - Math & Bit ManipulationMediumAuto-gradedPositive Divisors of N² via Prime Factorization of N
Tests whether a candidate can reduce a unit-fraction equation to a divisor-counting problem using algebraic factoring and number theory.
Math & Bit Manipulationnumber-theorydivisorsprime-factorization - Math & Bit ManipulationHardAuto-gradedMinimum Perfect Squares to Sum to Target
Tests understanding of number theory and optimal algorithms for decomposing integers into sums of perfect squares.
Math & Bit Manipulationnumber-theorymathoptimization - Math & Bit ManipulationEasyAuto-gradedMaximum Group Size with Shared Bit Position
Tests ability to use bit manipulation and counting to find the largest group of numbers sharing at least one common bit.
Math & Bit Manipulationbit-manipulationgreedycounting - Math & Bit ManipulationHardAuto-gradedCount Lattice Paths Avoiding Forbidden Cells
Tests combinatorics by counting monotone lattice paths from (0,0) to (m,n) that avoid a given set of forbidden grid cells, using inclusion-exclusion over path prefixes.
Math & Bit Manipulationcombinatoricsdynamic programmingmathbit manipulation - Math & Bit ManipulationMediumAuto-gradedCalculate Power Plant Economics and Renewable Breakeven
Tests break-even analysis, contribution margin calculations, capacity constraints, and financial comparison of energy generation alternatives.
Math & Bit Manipulationbreak-even analysisprofit calculationbusiness metrics - Math & Bit ManipulationEasyAuto-gradedBuild the Hailstone Number Chain
Simulating an iterative number transformation until a fixed point is reached, handling boundary conditions and large intermediate values.
Math & Bit Manipulationsimulationiterationmathematical-sequences - Math & Bit ManipulationMediumAuto-gradedMaximum Theater Group Seating Capacity
Tests bitmask-based interval availability checking for constrained seat allocation with large input optimization.
Math & Bit Manipulationbitmaskgreedyoptimization - Math & Bit ManipulationMediumAuto-gradedCalculate Ride Service Economics and Peak Pricing
Tests unit economics, capacity planning, and dynamic pricing calculations for a transportation service with fixed driver costs and variable demand.
Math & Bit Manipulationunit-economicscapacity-planningprofit-calculation - Math & Bit ManipulationEasyAuto-gradedSmallest Integer Divisible by All in Range
Tests understanding of LCM computation via repeated GCD to find the least positive integer divisible by every integer in a given range.
Math & Bit Manipulationmathnumber-theorygcd-lcm - Math & Bit ManipulationMediumAuto-gradedCount Pairs Whose XOR Has Exactly K Set Bits
Tests the ability to combine bit counting (popcount) with efficient pair enumeration to find pairs in an array whose XOR contains exactly K set bits.
Math & Bit Manipulationbit manipulationnumber theorycombinatorics - Math & Bit ManipulationEasyAuto-gradedCount Subsets With Product Equal to a Power of Two
Tests whether candidates can combine combinatorics (counting subsets) with the insight that a product is a power of two iff every element is itself a power of two.
Math & Bit Manipulationcombinatoricsbit manipulationmath - Math & Bit ManipulationMediumAuto-gradedExpected Flips for Random Walkers to Collide on Octagon
Tests Markov chain modeling, symmetry reduction, and first-step recurrence equations for a two-particle random walk problem.
Math & Bit Manipulationprobabilitymarkov-chainsrandom-walksexpected-value - Math & Bit ManipulationMediumAuto-gradedSmallest Integer Divisible by All Segment Lengths
Tests the ability to apply LCM iteratively and use GCD to reduce it, while reasoning about arithmetic progressions and large-number arithmetic.
Math & Bit Manipulationmathnumber-theorygcd-lcm - Math & Bit ManipulationMediumAuto-gradedCount Lattice Paths Through Required Checkpoints
Tests whether a candidate can combine combinatorics (binomial coefficients) to count grid paths that must pass through a sequence of ordered checkpoints.
Math & Bit Manipulationcombinatoricsmathdynamic programming - Math & Bit ManipulationMediumAuto-gradedSum of Digits Across All Bases from 2 to K
Tests ability to repeatedly convert an integer into multiple bases and accumulate digit sums, combining base-conversion mechanics with modular arithmetic.
Math & Bit Manipulationmathbit manipulationbase conversion - Math & Bit ManipulationMediumAuto-gradedTime 45 Minutes Using Two Non-Uniform Burning Cords
Tests logical reasoning about burn-time budgets and how lighting both ends of a cord precisely halves its remaining duration regardless of density.
Math & Bit Manipulationlogicreasoningmath