Software Engineer Statistics & Math Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Deduce position from logic clues
Constraint-Satisfaction on a 2D Grid with Relational Clues Context You are given a rectangular grid with R rows and C columns. A set of named entities...
Calculate win chance in three-player dice game
Probability of Winning with Rerolls on Ties Setup - Three players: A (you), B, and C. - A fair six-sided die is used. - B and C have already rolled an...
Derive max distinct frequencies for n items
Maximum Number of Distinct Frequency Counts in an Array Context You are given an array of length n ≥ 1 whose elements are arbitrary integers (values m...
Plan for timed probability assessment
Timed Probability/Statistics Assessment Strategy (30 Questions, Strict Time Limit) Prompt You are taking a timed online assessment with 30 probability...
Explain median vs mean for L1/L2
Median vs Mean Under L1 and L2, and the 2D Extension Task Explain, with intuition and a brief derivation, why: - In 1D, the median minimizes the sum o...
Calculate conditional probabilities for coin tosses
Probability with Two Fair Coin Tosses You toss a fair coin twice. Let the coin be fair (P(H) = P(T) = 1/2) and the tosses independent. (a) Compute P(s...
Compute probability of drawing reds
Probability of Drawing at Least Two Red Balls Problem A bag contains 6 red balls and 4 blue balls. Three balls are drawn uniformly at random without r...
Compute permutations with repeated letters
Counting Strings with Repeated Characters Problem Given two nonnegative integers m and n, how many distinct strings can be formed that contain exactly...
Compute negative-price probability after n steps
Random-Walk Price Crossing Probability Setup - Initial price: S₀ = s (real number). - Step size: x > 0. - Number of days: n (integer ≥ 0). - Each day ...
Solve numeric sequence pattern puzzles
Sequence Prediction Task You are given five independent number sequences. For each, determine the next term and briefly explain the rule you used. Ass...
Solve quick probability questions
Rapid-Fire Probability Questions Context Answer the following independent probability questions. Assume fair dice/coin and a standard 52-card deck. Sh...
Compute expectations, conditionals, odds, and distributions
Fast Probability and Statistics (No Calculator) Context: Answer quickly with mental math and concise reasoning. Show set-up and any helpful shortcuts....
Design dice betting strategy under time limit
Repeated Dice Betting with Time and Risk Constraints You have T = 10 minutes and an initial bankroll B = $1,000 to play a repeated betting game with a...
Design tests to verify shuffle randomness
Experiment Design: Is Your Array Shuffle Truly Random? You're given a shuffle(arr) function that takes an array of n distinct items and returns a rand...
Deduce row order from logic clues
Logic Ordering Puzzle: Four Coworkers in a Row Context Four coworkers—A, B, C, and D—are standing in a single row, left to right, facing north. Positi...
Calculate tiered cost and break-even
Tiered Pricing and Shipping Cost Function You are ordering q units from a vendor with the following pricing: - Fixed setup fee per order: $500 - Unit ...
Compute urn-draw probabilities and expectations
Urn Drawing Probabilities (Without Replacement) You have an urn with 12 balls: 5 red (R) and 7 blue (B). You draw two balls uniformly at random withou...
Explain linear algebra for graphics transforms
MVP Pipeline, Homogeneous Coordinates, NDC, Screen Space, and Normal Transformation Context You are working in a standard real-time graphics pipeline....
Calculate dice game win probability
Dice Game With Tie Rerolls: Probability You Eventually Win Context - Three players each roll a fair standard 6-sided die. - The highest roll wins. - I...