practice a little every day — you've got this ♡
Math & Bit Manipulation 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 91–120 of 217 results
- Math & Bit ManipulationEasyAuto-gradedSimple OLS Linear Regression Fitting
Compute the slope and intercept for a univariate linear regression model using ordinary least squares.
Math & Bit Manipulationmatharraysstatistics - Math & Bit ManipulationMediumModel answerCheapest Cart Total with Percent-Off and Buy-X-Get-Y Promotions
Define pricing rules for percent-off and buy-X-get-Y promotions, then build an algorithm that returns the lowest legal total for a cart, covering stacking, repeats, and rounding.
Math & Bit Manipulationpricingdiscountsrequirements-clarificationgreedy - Math & Bit ManipulationMediumAuto-gradedChance That Two Random Draws Multiply to More Than a Half
Compute the exact probability that the product of two independent Uniform(0,1) values exceeds 1/2, by integrating over the region of the unit square above a hyperbola.
Math & Bit Manipulationprobabilityintegrationcontinuous-distributionsclosed-form - Math & Bit ManipulationHardAuto-gradedSubset Count Under Sum Constraint and Divisor Index
Find the maximum number of elements from an array whose sum is at most a given target n, and compute the k-th smallest positive divisor of a number N.
Math & Bit Manipulationmathsortinggreedyprefix-sum - Math & Bit ManipulationEasyModel answerHandling IEEE 754 Floating-Point Limits in JavaScript
Understand JavaScript numeric edge cases, floating-point precision constraints, and how to safely implement custom checks without built-in helpers.
Math & Bit Manipulationjavascriptieee-754numeric-precisiontype-coercion - Math & Bit ManipulationMediumAuto-gradedDetermine if Two Coin Stacks Can Be Equalized by Doubling
Determine if two initial quantities can reach equality through deterministic transfers that double the recipient stack.
Math & Bit Manipulationmath-bitsnumber-theorybit-manipulationsimulation - Math & Bit ManipulationEasyAuto-gradedRent and Occupancy Targets for a 100-Unit Apartment Building
Apply a simple profit model with fixed costs, a rent-proportional cost and a target return to find a required rent and a required occupancy.
Math & Bit Manipulationmathbreak-evenunit-economicsalgebra - Math & Bit ManipulationMediumAuto-gradedExpected Number of Running Record Highs
Compute the expected number of strict running maximum records for a uniformly random ordering of a collection of numbers.
Math & Bit Manipulationmathprobabilityarrays - Math & Bit ManipulationEasyAuto-gradedPosterior for the Favorite After Your Entry Loses
Apply Bayes' rule to find the chance a randomly chosen contestant was the strongest one, given that it did not win a three-way contest.
Math & Bit Manipulationprobabilitybayes-ruleconditional-probabilitymath - Math & Bit ManipulationHardModel answerComprehensive Algorithmic Practice Set: Bitwise, Window, Monotonic Stack & Tree Operations
A practice collection covering essential algorithms: bit manipulation, two pointers, monotonic stack, dynamic programming, binary search, tree path XORs, and graph re-rooting.
Math & Bit Manipulationbit-manipulationmonotonic-stacktree-dpdynamic-programming - Math & Bit ManipulationEasyAuto-gradedDetermine Convergence of Digit-Square Sums
Simulate a transformation that replaces a number with the sum of its squared digits, determining if it terminates at 1 or loops indefinitely.
Math & Bit Manipulationmathhash-tabletwo-pointers - Math & Bit ManipulationEasyAuto-gradedConfusion Matrix Scorecard with Safe Division
Compute precision, recall, specificity, F1 and accuracy from confusion-matrix counts, returning 0.0 for any metric whose denominator is zero.
Math & Bit Manipulationmetricsconfusion-matrixedge-casesarithmetic - Math & Bit ManipulationEasyAuto-gradedProbability of Keeping Majority Red Items
Calculates the probability that at least two of three kept items are red when green items are returned upon selection.
Math & Bit Manipulationmathcombinatoricsprobability - Math & Bit ManipulationMediumAuto-gradedChance a Daily +/- Walk Ends Below Zero
Model a price as a two-step random walk, reduce it to a binomial lower tail with a strict cutoff, and sum that tail in a numerically stable way.
Math & Bit Manipulationprobabilitybinomialnumerical-stabilityrandom-walk - Math & Bit ManipulationEasyAuto-gradedCalculate Expected Score from Multi-Stage Die Rerolls
Computes the optimal decision threshold and overall expected payoff when given one optional reroll on an N-sided die.
Math & Bit Manipulationmathprobabilityexpected-valuedynamic-programming - Math & Bit ManipulationEasyAuto-gradedDetermine Animal Quantities in a Barn
Find the integer count of each animal species given the total legs and proportional species constraints.
Math & Bit Manipulationmathalgebra - Math & Bit ManipulationMediumAuto-gradedMaximize Disjoint Letter Coverage
Find the maximum count of distinct letters that can be collected by picking a mutually disjoint subset of strings.
Math & Bit Manipulationbit-manipulationbacktrackingdynamic-programmingstrings - Math & Bit ManipulationHardModel answerNumbers with Double Sum-of-Squares Decompositions
Count unique pairs of non-negative integers whose squares sum to a target value, identifying numbers with exactly two representations up to a limit N.
Math & Bit Manipulationmath-bitsarraysmath - Math & Bit ManipulationEasyAuto-gradedSimulate Account Transactions with Integer Cashbacks
Process a series of deposits, conditional withdrawals, and integer floor cashbacks to compute a final account balance.
Math & Bit Manipulationsimulationmatharrays - Math & Bit ManipulationEasyModel answerTimed Reasoning Quiz: Sequences, Cycles and Grammar Gaps
Answer three short reasoning items (number sequence, repeating symbols, sentence completion) and explain a time-boxed strategy for a 50-item, 15-minute screen with no wrong-answer penalty.
Math & Bit Manipulationaptitudepattern-recognitionmodular-arithmetictime-management - Math & Bit ManipulationMediumAuto-gradedCalculate Promotion Break-Even for Rental Discount
Compute the break-even target for new customer acquisitions under base and spend-uplift promotional scenarios.
Math & Bit Manipulationmathunit-economicsfinancial-modeling - Math & Bit ManipulationEasyAuto-gradedCompute Precision and Recall from Confusion Counts
Compute precision and recall from the four confusion-matrix counts of a binary classifier, returning 0.0 for a metric whose denominator is zero.
Math & Bit Manipulationmathconfusion-matrixprecision-recalledge-cases - Math & Bit ManipulationMediumAuto-gradedDelta-Method Variance of a Ratio of Two Sample Means
Apply a first-order Taylor expansion to get the approximate variance of a ratio of two correlated sample means, including the covariance term.
Math & Bit Manipulationdelta-methodvariancecovarianceratio-metrics - Math & Bit ManipulationMediumAuto-gradedGap in Days Between Two Calendar Strings Without Date Libraries
Parse two ISO-style date strings and compute the absolute day gap using manual Gregorian leap-year logic, without any date or calendar library.
Math & Bit Manipulationdate-arithmeticleap-yearstring-parsingmath - Math & Bit ManipulationEasyModel answerAxial Tilt and Doubling Money: Two Estimation Questions
Explain the physical cause of hot summers and cold winters, then compute the balance of a $1,000 deposit that earns 100% interest compounded yearly for 20 years.
Math & Bit Manipulationestimationcompound-interestexponential-growthmental-math - Math & Bit ManipulationHardAuto-gradedStreaming Run/Bit-Pack Codec Session Simulator
Simulate a codec session that buffers int32 values, emits run-length and bit-packed blocks on flush, and decodes block lists back to integers.
Math & Bit Manipulationbit-manipulationcompressionsimulationtwos-complement - Math & Bit ManipulationEasyAuto-gradedDetect a Rate Reversal Between Strata and Pooled Totals
Compare two groups' success rates per stratum and pooled, using exact integer cross-multiplication, to detect when a consistent stratum winner flips in the aggregate.
Math & Bit Manipulationsimulationfractionsaggregationsimpsons-paradox - Math & Bit ManipulationMediumAuto-gradedFour Weighted Dice: Lowest Three Add Up to Three
Compute the exact reduced probability that the three smallest of four independent weighted dice sum to 3, which reduces to counting weighted outcomes with at least three ones.
Math & Bit Manipulationprobabilitycombinatoricsfractionscounting - Math & Bit ManipulationMediumAuto-gradedProject a Vertex and Its Normal Through a Render Pipeline
Apply model, view and projection matrices to a point, do the perspective divide and viewport mapping, and transform a normal with the inverse-transpose of the model's 3x3 block.
Math & Bit Manipulationlinear-algebramatriceshomogeneous-coordinatessimulation - Math & Bit ManipulationMediumAuto-gradedChance of a Red Majority When Skipping Returned Marbles
Compute a probability for a draw process with discarded-and-returned items by reducing it to a hypergeometric count, ignoring the irrelevant returned category.
Math & Bit Manipulationprobabilitycombinatoricshypergeometricmath