Math Interview Questions
200 interview questions in our bank cover Math, most of them Coding Questions. They average 2.7/5 difficulty — medium — and each one was reported by a candidate after a real interview. Companies known to ask about Math: Amazon, Capital One, Snowflake, Microsoft, Akuna Capital, and 15 more.
Practice these on the problems board →Companies that ask about Math
Question mix
- Coding Questions198
- ML Fundamentals & Algorithms2
Difficulty
- 1/5 — warm-up5
- 2/5 — easy71
- 3/5 — medium110
- 4/5 — hard14
Math questions at Amazon
Sort a Permutation in Exactly M Swaps
3/5This interview puzzle, noted in Amazon technical screenings, requires checking whether a given permutation can be ordered into its natural sequence using an exact count of pairwise swaps from a provided list. It examines your understanding of permutation parity, inversion counts, and graph cycle properties. The full problem description, test cases, and expert solution can be unlocked with a subscription.
Coding QuestionsAmazonSimpleDataClass with Sum and Average Subfunctions
2/5Package two small numeric helpers, a total and a mean, inside a class that a team could maintain without surprises. This Amazon question is scored on organisation rather than arithmetic: naming, where validation belongs, and what the mean of an empty list should do. You will keep the two helpers independent, agree on the behaviour for degenerate input, and leave the class easy to extend. A subscription unlocks the complete problem and the reference implementation.
Coding QuestionsAmazonNumber of Digit One
3/5As a classic algorithmic challenge often featured by Amazon, this problem focuses on computing the cumulative frequency of a specific digit across a continuous integer sequence up to a given upper bound. The exercise examines your ability to move beyond slow iterative checks and instead derive a mathematical pattern based on digit positions and place values. Developing an efficient logarithmic time solution is key to passing this evaluation. To view the complete problem breakdown and optimal solution code, a subscription is required.
Coding QuestionsAmazonMinimum Time Until Password Is Irrecoverable
4/5This advanced Amazon interview question simulates a security breach where characters in a string are progressively corrupted based on a given permutation sequence. The challenge evaluates your ability to efficiently track substring states and compute the exact moment a threshold of compromised segments is crossed. The complete problem statement, optimal algorithmic approach, and model solution are available with a subscription.
Coding QuestionsAmazonInteger to Roman Numeral
2/5This classic numerical conversion exercise, commonly featured in Amazon coding interviews, requires you to translate standard Arabic integers into their traditional Roman numeral counterparts. You will need to implement a robust mapping strategy that correctly handles subtractive notations and value groupings across various decimal places. This problem is an excellent test of your arithmetic logic and iterative reduction skills. The full problem statement and clean code implementation are available exclusively to subscribers.
Coding QuestionsAmazonLeast Trucks Under Capacity and Per-Type Limits
3/5This Amazon coding assessment asks you to determine the minimum fleet size needed to transport various product quantities under strict vehicle capacity and cargo type restrictions. It tests your greedy algorithmic thinking and resource allocation strategies under constraints. The full question details and verified solution are restricted to subscribers.
Coding QuestionsAmazonUnique Paths in a Grid
2/5Explore this classic grid traversal puzzle frequently featured in technical interviews at Amazon, where you must determine the total number of unique routes across a matrix from the top-left corner to the bottom-right destination. Movement is strictly restricted to rightward and downward steps, turning the challenge into an exercise in combinatorics or dynamic programming optimization. You will evaluate how to compute these configurations efficiently without redundantly recalculating sub-paths. Unlock the full problem breakdown, optimal algorithmic approaches, and clean reference code with a subscription.
Coding QuestionsAmazonDoes One Package Fit Every Product
2/5Decide whether one container exists that can hold every item in a list, where each item and container is described by three side lengths and items may be turned freely. Reported by an Amazon Robotics intern candidate, this question rewards the observation that sorting both triples reduces six orientations to a single comparison. You will reduce the items to one worst-case envelope, compare it against each container, and avoid the volume shortcut that silently accepts impossible fits. The full problem and the verified solution are available to subscribers.
Coding QuestionsAmazonMinimum Bills and Coins for an Amount
2/5In this Amazon onsite interview challenge, candidates must compute the smallest number of currency units required to make a specific monetary value using standard denominations. The problem tests numerical precision handling, greedy optimization strategies, and managing inventory constraints during change-making extensions. It evaluates practical algorithmic design and clean implementation under pressure. The full problem description, follow-up variations, and complete model solution require a paid subscription.
Coding QuestionsAmazonMaximum Strictly-Increasing Unique Batches
3/5Featured in an Amazon technical screening, this problem challenges you to optimize inventory grouping under strict constraints. Given varying quantities of different items, the objective is to form sequential collections where each group utilizes distinct product types and contains strictly more elements than the previous one. This task assesses your greedy algorithmic thinking, array manipulation, and optimization abilities. Full problem details and the optimal code solution require a subscription.
Coding QuestionsAmazonEarliest Time to Finish One Comedy and One Drama
3/5This Amazon technical interview question challenges candidates to optimize scheduling constraints for sequential media consumption. Given varying release times and lengths for different entertainment categories, you must calculate the absolute earliest possible moment an individual can successfully finish viewing at least one item from each required genre. The assessment evaluates efficient sorting, time-boundary calculations, and logical decision-making under temporal constraints. To view the complete problem breakdown and the verified model solution, a paid subscription is needed.
Coding QuestionsAmazonMinimum Starting Health to Clear the Game
2/5In this engaging challenge frequently asked at Amazon, you must figure out the minimum initial vitality a player needs to survive a sequential series of damaging encounters while strategically applying a single armor mitigation. The question tests your backward reasoning or greedy calculation skills to ensure health never drops to zero at any point during the progression. You need to account for the optimal placement of your protective gear to absorb the most punishing blow. The complete problem description, explanations, and model solution require a subscription.
Coding QuestionsAmazonMaximum Product of Three Numbers
2/5This frequently asked Amazon interview question challenges you to find the highest possible product formed by multiplying any three values from a given list of numbers. To succeed, you must think beyond a naive nested loop and efficiently track the largest and smallest values, since negative elements can drastically swing the final outcome. This task evaluates your capability to optimize arithmetic logic and handle edge cases gracefully in linear time. Access to the complete problem breakdown and the optimal model solution requires a subscription.
Coding QuestionsAmazonImplement the Sigmoid Function
2/5This popular Amazon interview question challenges you to implement the foundational logistic activation function while carefully guarding against numerical instability. You will write a robust floating-point calculation that handles extreme domain boundaries without triggering arithmetic overflow or underflow. The task tests your mathematical awareness, precision handling, and edge-case management in systems programming. Gain full access to the complete problem specifications and optimized model implementation with a subscription.
Coding QuestionsAmazonImplement Numerically Stable Softmax
2/5Encountered during Amazon engineering interviews, this numerical computing task requires implementing the standard softmax activation function while avoiding common floating-point arithmetic pitfalls. Because raw exponential computations can easily trigger numeric overflow when handling large inputs, candidates must apply algebraic scaling techniques to maintain precision. The exercise evaluates your mathematical intuition and implementation safety in machine learning contexts. Review the full problem definition, mathematical breakdown, and clean solution code with a subscription.
Coding QuestionsAmazonAdd Two Numbers in Forward Order
2/5This reported Amazon interview question challenges you to compute the sum of two large numbers whose digits are presented in standard left-to-right order. Instead of parsing the entire structures into primitive integers, you must manually perform column-by-column addition while properly managing carries from highest to lowest significance. This exercise evaluates your proficiency in handling linked lists or array sequences and managing edge cases like leading zeros. Access to the complete problem breakdown and optimal implementation requires a paid subscription.
Coding QuestionsAmazonLongest Even-Sum Subsequence
2/5Discover how to approach this engaging array manipulation problem featured in Amazon coding interviews. This challenge evaluates your ability to analyze number sequences and apply logical conditions efficiently without resorting to exhaustive searches. You will need to determine how to selectively include or exclude elements to maximize length while preserving parity constraints. To unlock the complete problem description, comprehensive test cases, and a fully explained optimal solution, a paid subscription is required.
Coding QuestionsAmazonCount Pairs With Sum Divisible by X
2/5This Amazon interview challenge asks you to examine a collection of prices and determine how many unique pairs yield a sum divisible by a given divisor. Candidates must design an efficient approach that avoids brute-force comparisons to meet performance expectations. The exercise evaluates modular arithmetic principles and frequency-counting strategies. Unlock the complete problem breakdown and optimized code solution with a paid subscription.
Coding QuestionsAmazonSum of Distinct Floor Divisions
3/5Investigate mathematical relationships and integer division properties in this engaging Amazon interview question. You will compute the summation of unique quotient values generated by dividing a target number across a sequence of divisors. This challenge highlights number theory fundamentals and optimization strategies for avoiding brute force loops. Access the complete problem statement and model solution with a subscription.
Coding QuestionsAmazonCount Ways to Select a Two/Four-Wheel Fleet
2/5In this classic combinatorial challenge frequently featured in Amazon interviews, you must calculate the total number of valid configurations to form specific numerical totals using two distinct types of elements with unlimited availability. The puzzle evaluates your ability to apply dynamic programming or mathematical counting strategies efficiently. Gain access to the comprehensive problem statement, algorithmic breakdown, and complete code solution with an active subscription.
Coding QuestionsAmazonCount Gift Pairs Summing to a Power of Three
3/5This frequently asked Amazon interview puzzle challenges candidates to efficiently analyze numerical sequences and identify valid combinations whose combined values align with specific exponential milestones. Tackling this challenge effectively requires mastering clever hash-mapping or two-pointer techniques to avoid sluggish brute-force enumeration. Engineers will evaluate their capacity to optimize time complexity while handling scale constraints gracefully. To examine the complete problem statement along with a robust, production-ready reference solution, unlock full platform access today.
Coding QuestionsAmazonImplement Scaled Dot-Product Attention
3/5This Amazon interview task challenges engineers to construct the core scaled dot-product attention mechanism from scratch without masking layers. Candidates must correctly handle matrix dimensions for queries, keys, and values while applying numerical scaling and softmax transformations. The problem evaluates linear algebra fluency and tensor manipulation proficiency in machine learning frameworks. Unlock the full evaluation harness and expert solution code through a paid subscription.
Coding QuestionsAmazonTotal Processor Execution Time With Cohesion
3/5Simulating complex state changes across a sequential workload is a fascinating challenge often posed during Amazon software engineering interviews. This problem requires you to calculate the aggregate duration of processes running from left to right, where executing a task simultaneously reduces the execution time of related cohesive elements based on a specific mathematical rule. The task tests your simulation efficiency and algorithmic optimization skills. Explore the complete problem description and model solution by subscribing today.
Coding QuestionsAmazonShortest Path Between Circular Drone Hubs
2/5This Amazon interview challenge requires you to compute the shortest traversal distance between various nodes arranged in a circular topology by comparing clockwise and counter-clockwise pathways. It tests your ability to handle ring-based array indexing and efficiently process batch queries for optimal path selection. Unlock the full problem details and the clean model solution with a subscription.
Coding QuestionsAmazonLongest Squaring Chain of Rice Bags
3/5Encountered frequently in technical interviews at Amazon, this challenge tests your skill in identifying specialized numerical relationships within collections of data. You are tasked with discovering the largest subset of values where each consecutive element is the square of the preceding one, returning the total count or indicating if no valid sequence exists. Unlocking the full problem description, edge cases, and the complete model solution requires an active paid subscription.
Coding QuestionsAmazonMinimum Cost to Equalize a Circular Warehouse
3/5This coding interview problem reported at Amazon explores efficient distance optimization over circular arrangements. The goal is to equalize quantities across adjacent containers by shifting items uniformly in one direction while minimizing total transit effort. This tests your understanding of prefix sums, median optimization properties, and circular array manipulation. Get access to the full problem requirements and clean implementation strategies through our paid subscription.
Coding QuestionsAmazonMinimum Swaps for Lightest-Top Heaviest-Bottom
3/5This reported Amazon interview question challenges you to find the minimum number of adjacent position adjustments needed to place the lightest item at the very beginning and the heaviest item at the very end of an array. This puzzle tests your grasp of greedy strategies, sequence manipulation, and efficient counting techniques on sequential collections. Tackling this problem helps improve your ability to optimize rearrangement operations. To explore the complete problem statement and review the optimal model solution, a subscription is required.
Coding QuestionsAmazonMinimum Moves to Even Out Box Piles
3/5Balancing distributions across discrete groups is an engaging optimization problem frequently posed during technical evaluations at Amazon. The challenge requires determining the minimum number of reallocation steps needed to balance items among multiple containers so that every group approaches an equalized average state. This puzzle tests greedy thinking, mathematical reasoning, and efficient array manipulation under specific constraints. Explore the complete problem overview and discover the optimal algorithmic solution by subscribing today.
Coding QuestionsAmazonSum of Distinct Counts Over All Subarrays
3/5This Amazon interview problem asks you to compute a specific aggregate sum over all possible contiguous subarrays of a given input array. For each individual subarray, you must determine the number of unique values it contains. The ultimate goal is to sum these distinct counts across every single subarray. This challenge tests your ability to efficiently iterate through subarrays and, more critically, to optimize the process of counting distinct elements within them, often requiring techniques like sliding windows or clever data structures to avoid redundant computations. The full problem and model solution require a subscription.
Coding QuestionsAmazonGreatest Outlier Value
3/5Encountered in an Amazon technical interview, this puzzle asks you to analyze a collection of integers that includes standard values, their cumulative total, and a single anomalous outlier. Your objective is to efficiently isolate and compute the maximum possible value for that exceptional element using linear scan techniques. This problem assesses your numeric reasoning, mathematical deduction, and skill in designing efficient array-scanning algorithms. Review the complete problem statement and discover the optimal model solution by acquiring a subscription.
Coding QuestionsAmazonPath in a Zigzag Labelled Binary Tree
3/5Explore this interesting tree-navigation puzzle featured in Amazon interviews, where rows follow an alternating directional pattern rather than standard layouts. Given a target node identifier, your goal is to reconstruct the exact sequence of steps from the tree apex down to that specific location. This problem tests your mathematical intuition regarding tree indexing and hierarchical traversal patterns. Discover the full problem statement and clean code solution by securing a subscription today.
Coding QuestionsAmazonAPI Calls to Match Target Review Counts
2/5Encountered during technical evaluations at Amazon, this algorithmic puzzle challenges you to calculate the aggregate operational cost required to adjust a collection of numerical data points to match multiple specified targets. Your objective is to compute the total adjustment effort for each goal efficiently across an entire dataset. This exercise evaluates your ability to leverage sorting, prefix sums, or mathematical transformations to optimize what would otherwise be a costly brute-force approach. To view the full problem description and expert solution, a paid subscription is required.
Coding QuestionsAmazonMinimum Redistribution Cost on a Ring
3/5A circular array question about equalising counts by moving items between adjacent positions in a single rotational direction at minimum total cost.
Coding QuestionsAmazon
Math questions at Capital One
Subtract Product and Sum of Digits of a Large Number
2/5Take a number given as a long string of digits and report the difference between the product of its digits and their sum. This Capital One question is intentionally mechanical and checks two things: that you treat the input as text rather than an integer, and that you notice a single zero digit collapses the product. You will iterate once over the characters, keep both accumulators in step, and reason about the size the product can reach. The complete problem and the reference solution require a subscription.
Coding QuestionsCapital OneOdd Zero-Digit Count
1/5String manipulation and digit extraction form the core of foundational coding evaluations, exemplified by this reported Capital One interview question. The challenge involves examining a collection of numeric values to determine how frequently specific character patterns appear within their decimal representations, applying unique parity conditions to tally the final result. This exercise tests your ability to handle basic arithmetic conversions, conditional logic, and edge cases gracefully. It serves as a great warm-up for validating fundamental programming proficiency. The complete problem statement and detailed model solution require a subscription.
Coding QuestionsCapital OneA/P Replacement Rounds
3/5Reported as a Capital One technical interview challenge, this puzzle simulates a sequential string transformation game governed by strict priority rules involving character frequency thresholds. The objective is to compute the total number of iterations needed before the sequence reaches a stable terminal state. This problem tests your ability to implement custom simulation logic efficiently while managing trailing patterns. Access to the complete problem instructions and the official model solution requires an active subscription.
Coding QuestionsCapital OneRepeated Leading-Nonzero Prefix Subtraction
2/5A coding question that asks for a function which takes an array of non-negative integers, applies a fixed rule that clears one entry at a time, and returns the total collected. Correct answers must respect where each step stops, treat zero and equal entries properly, and leave the caller's list unchanged.
Coding QuestionsCapital OneMinimum Increments to Form a Consecutive Run
3/5A coding question on array adjustment: with the only allowed change being to raise elements by one, work out the cheapest way to turn a list of heights into a perfectly regular staircase that goes up or down by one at every step. It tests careful reasoning about which target values are reachable and about edge cases.
Coding QuestionsCapital OneEven Digit Count
1/5This beginner-friendly coding challenge, frequently featured in Capital One technical interviews, tests your ability to iterate through collections and process numerical data. You will be asked to evaluate a sequence of numeric values and determine how many items meet a specific length criterion regarding their digit count. This problem is excellent for practicing basic arithmetic operations and string conversion techniques in a timed setting. Access to the complete problem breakdown and optimal code solution requires a subscription.
Coding QuestionsCapital OneLunar Phase State Lookup
2/5This date-arithmetic interview puzzle, reported at Capital One, challenges you to determine cyclical lunar phases based on a calendar year's starting condition and specific temporal targets. By utilizing repeating seasonal intervals and a fixed eight-day lunar cycle, you must write a lookup function that accurately maps any given date to its corresponding celestial state. The task examines modular arithmetic, calendar manipulation, and edge-case handling for cyclical phenomena. Gain full access to the complete problem instructions and verified code solution with a subscription.
Coding QuestionsCapital One
Math questions at Snowflake
Cross the Threshold
3/5Find the largest uniform reduction you can apply to a set of particle energies while keeping their clamped total at or above a required level. Asked at Snowflake, the clamping at zero makes the total a monotone step function of the reduction, which is exactly the structure a binary search needs. You will prove monotonicity before searching, bound the search range sensibly, and handle the case where even a zero reduction misses the target. The full problem and the model solution require a subscription.
Coding QuestionsSnowflakeCalculate Amount Paid in Taxes
1/5In this Snowflake coding interview task, you are tasked with calculating progressive income tax liabilities across a tiered structure of varying brackets and percentages. Candidates must iteratively compute portions of a financial figure that fall into successive boundaries until the total levy is accurately accumulated. This question serves as a straightforward yet practical test of conditional logic and numerical iteration. Access the full problem walkthrough and verified solution by subscribing today.
Coding QuestionsSnowflakeReach Target via Add / Double / Halve
3/5A coding question about constructing a short sequence of simple arithmetic steps that turns one positive integer into another. It tests constructive reasoning about parity and keeping the output small for very large inputs.
Coding QuestionsSnowflakeSingle Query Type, Max Revenue in K Minutes
2/5This Snowflake interview question challenges you to optimize resource allocation by evaluating multiple options under a strict time constraint. You must determine which single operation yields the highest financial return when executed repeatedly within a given duration limit. The problem tests your ability to apply basic arithmetic and comparison logic efficiently to find the optimal choice. Unlock the complete problem description and expert model solution by securing a paid subscription today.
Coding QuestionsSnowflakeReachable K-in-a-Row Board Position
3/5A coding question about square-grid games where two players alternate placing marks and a straight run of a given length wins. You decide whether a supplied position could have come from a legal game that stops at the first win.
Coding QuestionsSnowflakeDigit-Square Sequence Reaching One
2/5A coding question about a number sequence: each term is formed by squaring the digits of the previous term and adding the results. You decide whether a given positive start ever arrives at 1 or circles forever.
Coding QuestionsSnowflakeMinimum Coins to Pay With Change
3/5A coding question about paying an exact amount with a fixed set of coin values when overpaying and receiving change is allowed. The goal is the smallest number of coins that change hands in total, counting both the payment and the change.
Coding QuestionsSnowflake
Math questions at Microsoft
Find Fair Indexes
3/5Find every split point that cuts two equal-length arrays into halves whose four sums all come out the same. Asked at Microsoft, this is a prefix-sum question with a neat observation up front: both arrays must have the same total and that total must be even, or no split point can exist at all. You will precompute running sums, test each candidate in constant time, and handle negative values that break any monotonic assumption. The full problem and the reference solution require a subscription.
Coding QuestionsMicrosoftSimple Data Processing Task
2/5Read a line of integers from standard input and print their average as a floating-point value, without reaching for a numeric library. This Microsoft warm-up exists to check input handling: any count of values must work, and the division has to produce a real quotient rather than a truncated one. You will parse defensively, decide what an empty line should do, and keep the output format stable. A subscription unlocks the full problem and the reference program.
Coding QuestionsMicrosoftCount Positive Pairs with 1/x + 1/y = 1/N
3/5This reported Microsoft interview challenge requires finding the quantity of valid integer pairs that satisfy a specific reciprocal equation involving a given constant. Because the parameter can be quite large, a brute-force enumeration will exceed time limits, testing your ability to apply mathematical transformations and algebraic reduction for efficient computation. You will need to optimize the search space to achieve sub-second execution. To explore the complete problem statement and review the optimal model solution, a paid subscription is required.
Coding QuestionsMicrosoftPalindromic Integers: Digit Check and Next Larger Palindrome
3/5A coding question on palindromic integers. You decide whether a number reads the same in both directions while working only with its digits, and you return the smallest palindrome above a given value quickly, even for 18-digit inputs and when the answer is far away.
Coding QuestionsMicrosoftMultiply Two Numbers Given as Strings
3/5A coding question about multiplying two very large numbers that are stored as digit strings, without using built-in big-number support. It tests careful digit-by-digit arithmetic, carry handling and edge cases such as zero operands and leading zeros.
Coding QuestionsMicrosoft
Math questions at Akuna Capital
Find Missing and Repeated Element
3/5This Akuna Capital interview question challenges you to locate a missing value and a duplicate entry within a sequential integer array. Candidates must evaluate optimal bitwise manipulation techniques alongside traditional arithmetic approaches to achieve high efficiency while avoiding common numerical overflow pitfalls. Discovering the complete problem statement, optimal algorithmic tradeoffs, and the verified model solution requires an active subscription.
Coding QuestionsAkuna CapitalArray Challenge Left-Comparison Running Counter
3/5Examine this intriguing array manipulation challenge reminiscent of quantitative interviews at Akuna Capital, which asks you to compute a running comparative score for every element against all preceding values in a sequence. You will evaluate numerical differences based on relative magnitudes, adding or subtracting absolute gaps according to specific directional rules. This exercise challenges your ability to optimize nested comparisons and recognize mathematical cancellations for better time complexity. To view the complete problem statement, comprehensive test suites, and reference solutions, a subscription is required.
Coding QuestionsAkuna CapitalQR Video OA: Advanced Math and Reasoning
4/5This video-based quantitative assessment, reported at Akuna Capital, evaluates candidates on advanced mathematical reasoning, probability, calculus, and linear algebra through a series of timed verbal explanations. Interviewees must articulate complex concepts clearly while solving intricate brain teasers, such as grid-based infection spread dynamics. Performing well on this format requires both rigorous technical knowledge and the ability to communicate sophisticated ideas succinctly. Access the full question overview and expert answers with a subscription.
Coding QuestionsAkuna CapitalTrader Fair-Bet Probability and Number Sequences
3/5Sharpen your quantitative reasoning and rapid estimation skills with this financial assessment module frequently utilized by Akuna Capital during quantitative candidate evaluations. The evaluation measures your ability to quickly compute fair bet probabilities, perform mental calculations under severe time constraints, and recognize mathematical sequence patterns. Success depends on accuracy and speed when handling probabilistic risk scenarios without relying on lengthy derivations. Unlock the complete set of practice drills, advanced calculation strategies, and verified solutions by purchasing a subscription.
Coding QuestionsAkuna CapitalRound Price to Nearest Valid Tick
3/5This numerical mapping problem deals with financial tick resolution across segmented valuation boundaries, frequently encountered in Akuna Capital interviews. Given a set of valid intervals with distinct granularities, your task is to snap any arbitrary floating-point number to the closest permitted discrete level while respecting boundary conditions. It tests your mathematical reasoning, edge-case management, and floating-point precision handling. Unlock the full problem specifications and model implementation by subscribing.
Coding QuestionsAkuna Capital
Math questions at Optiver
Stock Transaction Sequence Counting (Catalan / DP)
3/5This quantitative assessment problem, reported during recruitment rounds at Optiver, challenges candidates to count valid transaction sequences that maintain proper balance without dipping into negative totals. Relying on advanced combinatorics, counting principles, and dynamic programming techniques, this exercise tests your ability to model state transitions accurately. Access to the full problem description and its detailed model solution requires a paid subscription.
Coding QuestionsOptiverNumber Logic — Sequence / Find the Pattern
4/5Infer the rule behind a series of numeric sequences and supply the next term, using only mental arithmetic. It tests systematic pattern recognition across differences, interleaved terms, recurrences and positional rules.
ML Fundamentals & AlgorithmsOptiverCalendar Day Gap
2/5A coding question about measuring the distance in days between two calendar dates, where month lengths vary and leap years follow the Gregorian rule. It tests careful handling of calendar edge cases.
Coding QuestionsOptiverElapsed Days Between Two Calendar Dates
2/5A coding question on finding how many days apart two dates written as year-month-day text are. The candidate must apply the calendar rules for varying month lengths and leap years, including century exceptions.
Coding QuestionsOptiverStock Transaction Sequence Counting (Catalan / DP)
3/5Prepare for quantitative software engineering roles with this Optiver interview problem centered on tracking valid transaction sequences without falling into a negative balance. This challenge tests your grasp of advanced combinatorics, dynamic programming, and Catalan number applications common in market-making simulations. You must determine the exact count of admissible permutations under specific boundary rules efficiently. Unlock the detailed problem walkthrough and optimal code solution by purchasing a subscription.
Coding QuestionsOptiver
Math questions at Uber
Sum of Scores of Built Arrays
4/5Add up the products of every array you could build by picking one prime from each of several given ranges. This Uber question looks like an enumeration and is really an algebraic identity: the sum over all choices factorises into a product of per-range sums, which collapses an exponential count into a linear one. You will need prime sums over ranges, so a sieve with prefix totals, and a range containing no prime must zero the whole result. The full problem and the derivation require a subscription.
Coding QuestionsUberString to Digit Conversion
3/5Turn a number written out in English words into its digits, formatted for display. This Uber question is a parsing exercise with a vocabulary to design: units, teens, tens, and the scale words that multiply what came before them. You will accumulate partial values as the words arrive, apply scale words at the right moment, and decide where thousands separators belong in the output. A subscription unlocks the full problem and the reference solution.
Coding QuestionsUberCompute the CDF from a Normal Distribution PDF
3/5Turn the bell curve's density function into cumulative probabilities at several query points, without a statistics library. Asked at Uber, this is a numerical-methods question: you choose between a series expansion, a rational approximation to the error function, and numerical integration, and you have to defend the accuracy of whichever you pick. You will standardise each query point, handle the far tails without losing precision, and state the error bound. A subscription unlocks the full problem and the reference implementation.
Coding QuestionsUberMinimum Knight Moves on Infinite Chessboard
3/5This engaging puzzle has been reported in coding interviews at Uber and tests your graph traversal capabilities on an infinite grid. The objective is to compute the shortest route for a standard chess piece to travel from a designated origin to a specific destination point. Solving this efficiently typically involves employing breadth-first search heuristics and coordinate geometry. The entire problem details and the accompanying model solution require a subscription.
Coding QuestionsUberSqrt(x) Rounded Down
1/5This Uber interview question focuses on implementing a fundamental mathematical operation without relying on standard library functions. Given a non-negative integer, your goal is to compute its square root and then round the result down to the nearest whole number. The key constraint is to achieve this calculation using only basic arithmetic operations, demonstrating your understanding of numerical approximation techniques. This problem effectively assesses your ability to devise an algorithm for finding integer square roots. The full problem description and a model solution are available with a subscription.
Coding QuestionsUber
Math questions at Google
Equal Division of Square Area
2/5Split the area of a square into a given number of equal shares and define the interface that does it, including input and output formats. Asked at Google, the arithmetic is a single division and the real content is the specification around it: validating the divisor, choosing a return type that does not lose precision, and stating the complexity honestly. You will handle a zero or negative count and explain why the geometry imposes no further constraint. Subscribers get the full problem and the model answer.
Coding QuestionsGoogleCount Four-Digit Codes with Sum S
3/5Count the four-digit codes whose digits add up to a given total, including codes with leading zeros. Asked at Google, this has three good answers worth comparing: nested loops over three digits, a counting recurrence over digit positions, and inclusion-exclusion on the stars-and-bars formula. You will handle totals at both extremes, avoid double counting, and explain why leading zeros are part of the count here. Subscribers can read the full problem and the model solution.
Coding QuestionsGoogleMaximum Value With a Unit-Weight Capacity
2/5A coding question about choosing items of limited supply to maximise total value when only a fixed number of items fit. Huge counts, a very large cap, non-positive values and exact big-integer totals are the edge cases that matter.
Coding QuestionsGoogleSubtract Two Numeric Strings (Big Integer Subtraction)
3/5In this algorithmic challenge reported from a Google interview, you must implement custom arithmetic subtraction for extremely large numbers represented as text strings that exceed standard primitive limits. The task tests your mastery of manual digit-by-digit computation, carry and borrow tracking, and sign management. You will also need to handle formatting nuances such as removing redundant leading zeros safely. Unlock the complete problem specification and optimal reference solution by getting a subscription.
Coding QuestionsGoogle
More Math questions
Consecutive Numbers Sum
3/5In this mathematical coding challenge reported from Blink Health, you must find all possible ways to express a given integer as the sum of consecutive positive numbers. The exercise evaluates your grasp of number theory, algebraic manipulation, and optimization techniques to avoid brute-force search spaces. Discover the complete problem description, constraints, and optimal algorithmic solution with a paid subscription.
Coding QuestionsBlink HealthImplement Softmax
2/5Build a numerically stable implementation of a core machine learning activation function from scratch without relying on external mathematical libraries, a fundamental task featured in technical evaluations at Luma AI. This problem assesses your understanding of exponential scaling behavior and your ability to prevent floating-point arithmetic overflow when processing large real-valued vectors. You will practice applying mathematical transformations to raw scores to yield properly normalized probability distributions. Unlock the complete specification, constraints, and verified model solution with a paid subscription.
ML Fundamentals & AlgorithmsLuma AIPascal's Triangle
2/5Featured as a technical interview task at Ericsson, this coding problem challenges you to construct the classic mathematical arrangement known as Pascal's Triangle up to a given row limit. You will need to apply iterative logic to properly calculate and format the inner values while ensuring boundary conditions are correctly handled for every generated row. This exercise assesses your fundamental array manipulation abilities and algorithmic thinking. Unlock the full problem statement and a robust model solution with a subscription.
Coding QuestionsEricssonContiguous Subarray with Largest Min + Max
3/5Encountered in technical assessments at ByteDance, this coding challenge requires finding a contiguous subarray of sufficient length that maximizes the sum of its minimum and maximum elements. The problem tests your ability to analyze numeric sequences and optimize sliding window or linear scan strategies efficiently. Developing an optimal solution demands strong analytical thinking to avoid brute-force bottlenecks. Unlock the full problem details, test cases, and model solution by subscribing today.
Coding QuestionsByteDanceFind the Damaged Toy
2/5Work out which child in a circle receives the final item when handing them out one at a time from a chosen starting position. This Goldman Sachs question is modular arithmetic in disguise, and a loop over every item is unnecessary: the destination is a single expression. You will get the one-based labelling right, handle a count larger than the circle, and avoid an off-by-one at the wrap point. A subscription unlocks the full problem and the reference solution.
Coding QuestionsGoldman SachsCalculate Sum and Product
2/5Return both the total and the running product of a list of integers from a single routine. This Meta warm-up is about care rather than cleverness: a zero anywhere collapses the product, negatives flip its sign, and the product grows far faster than the sum as the list gets longer. You will accumulate both in one pass, choose sensible values for an empty list, and comment on the magnitude the product can reach. Subscribers can read the full problem and the reference solution.
Coding QuestionsMetaDigit Sum
3/5Encountered in a BNY Mellon interview, this problem revolves around a lottery system where participants hold numbered coupons and winners are determined by matching digit sums. You are tasked with finding the specific digital sum that maximizes the number of winning participants, as well as calculating how many alternative sums can achieve that exact maximum tie. The challenge tests your mathematical reasoning, digit manipulation, and frequency counting across a numerical range. Unlock the full prompt and complete model solution by purchasing a subscription.
Coding QuestionsBNY MellonFilter Numbers Greater Than the Average
2/5Compute the mean of a list of integers and return only the entries that sit strictly above it, in their original order. This Squarepoint warm-up needs two passes and gets interesting only at the edges: strict comparison excludes anything exactly at the mean, and integer division would quietly change the answer. You will keep the mean exact, preserve input order, and print nothing when no entry qualifies. The complete problem and the reference solution are available to subscribers.
Coding QuestionsSquarepointReach The Point
4/5Navigate a dynamic coordinate plane with scaling step sizes in this algorithmic challenge frequently reported during Samsung interviews. The exercise tests your ability to apply breadth-first search or mathematical pruning to determine the shortest path to a target position under progressive constraints. You will need to optimize state spaces to handle large test cases within strict time limits. Access the complete problem specification and optimal model solution with a subscription.
Coding QuestionsSamsungIs Possible
2/5Decide whether one pair of numbers can become another when the only move replaces one of them with the sum of both. This Goldman Sachs question is best attacked in reverse: from the target, the larger value has a single possible predecessor, so the backward walk is forced and remainders let you skip many steps at once. You will handle the cases where one coordinate stops changing, and return the required string verdict rather than a boolean. The full problem and the reference solution require a subscription.
Coding QuestionsGoldman SachsFind Value to Minimize Sum Difference After Replacement
3/5This Moody Analytics interview question explores numerical optimization and search strategies within integer sequences. Participants need to identify a replacement value that brings a collection's total sum as close as possible to a given threshold. This puzzle evaluates your mathematical reasoning, binary search application, and proficiency in minimizing aggregate error metrics over large datasets. Gain full access to the detailed problem statement and vetted model code through a paid subscription.
Coding QuestionsMoody's AnalyticsPairwise Modulo Checksum: Sum of i mod j + j mod i up to n
3/5A math-flavoured coding question: add up a remainder-based score over every pair of numbers in a range that can reach one million. It tests whether you can find structure in how remainders behave and count the total far faster than checking each pair, while keeping the arithmetic exact.
Coding QuestionsConfluentReaching Points
3/5Decide whether a starting pair of numbers can be turned into a target pair when the only legal move replaces one of them with their sum. This NVIDIA question punishes forward search and rewards working backwards: from the target, the larger value has exactly one possible predecessor, which makes the reverse walk deterministic. You will use remainders to skip many steps at once and handle the boundary cases where one coordinate stops changing. Subscribers get the full problem and the model solution.
Coding QuestionsNVIDIABasic Calculator (with and without Parentheses)
4/5This ByteDance interview question requires you to build a robust calculator capable of evaluating complex mathematical expressions provided as strings. The calculator must correctly handle non-negative integers, standard binary operators (addition, subtraction, multiplication, division), spaces, and parentheses. Key challenges include accurately implementing operator precedence rules, managing integer division with truncation towards zero, and correctly processing unary minus operations. This problem is a classic test of parsing techniques, stack-based algorithms, and careful state management to correctly interpret and compute the expression. The full problem and model solution require a subscription.
Coding QuestionsByteDanceFind the N-th Prime Number
3/5Return the prime at a given position in the sequence of primes, fast enough for positions up to a hundred thousand. This NVIDIA question is a sieve problem with a sizing twist: you must bound the search range before you can sieve it, which is where the logarithmic estimate for prime density earns its keep. You will choose a limit, sieve once, and state the complexity in terms of that limit rather than the index. The full problem and the model solution require a subscription.
Coding QuestionsNVIDIADifference Between Sums of Positions
2/5Total the in-range values sitting at even positions, total the in-range values at odd positions, and report the difference. This Databricks warm-up is a single pass with two accumulators, and the only traps are the inclusive range bounds and the zero-based position convention. You will apply the filter before the position split, keep both totals in step, and handle a list where nothing qualifies. The full problem and the reference solution require a subscription.
Coding QuestionsDatabricksJob Execution — Minimum Operations
4/5In this Adobe interview challenge, you must determine the optimal scheduling strategy to finish a collection of tasks in parallel using asymmetrical execution speeds. The scenario tests your proficiency in advanced mathematical modeling, greedy algorithms, and binary search to minimize total operational steps. You will need to account for varying workload durations and a dual-rate processing system. Unlock the full problem breakdown and expert code solution with a subscription.
Coding QuestionsAdobeClosest Land Mark
2/5Find the distance from a given number to the nearest term of the Fibonacci sequence. This Meta question is a generate-and-compare exercise, and the growth rate is the thing that makes it easy: the terms climb so fast that only a few dozen are ever relevant. You will generate until you pass the target, compare the neighbours on both sides, and handle a target that is itself a term. A subscription unlocks the complete problem and the reference solution.
Coding QuestionsMeta.NET OA: 3^x * 5^y Count and Decreasing Subarrays
2/5Featured in an IBM technical screening, this dual-part coding challenge tests your capability to handle mathematical number generation and sequence analysis. The first portion requires identifying integers expressible through specific exponential factors within a given numeric range while preventing overflow errors. The second part focuses on scanning an array to count contiguous segments meeting strict descending criteria. Mastering these tasks demands solid arithmetic reasoning and linear scan techniques. Access to the full problem description and complete model solutions requires a subscription.
Coding QuestionsIBMCount Unordered Ways to Reach a Total Weight Using Parts 1 to k
3/5A coding question on counting how many distinct collections of small weights add up to a target, where reordering the same weights does not create a new answer. Results grow very quickly, so the count is reported modulo a large prime, and the main trap is counting one collection more than once.
Coding QuestionsConfluentApproximate Pi Using Monte Carlo (Quarter Circle)
2/5Explore probabilistic numerical methods through this Veeva Systems interview challenge that asks you to estimate mathematical constants using randomized coordinates within a bounded geometric area. This exercise tests your proficiency in applying statistical sampling techniques and geometric formulas to compute floating-point approximations efficiently. To view the complete problem statement, underlying mathematical principles, and clean reference implementation, please unlock your account with a paid subscription.
Coding QuestionsVeeva SystemsMaximum Number of Balls in a Box
1/5This Roblox interview question tests basic arithmetic manipulation and frequency counting within a defined numerical range. You are tasked with distributing items into containers based on the digit sums of their numerical identifiers and identifying the container holding the largest quantity. It evaluates fundamental looping, mathematical operations, and hash map usage or bucket counting techniques. The full problem description, optimal algorithmic approach, and complete code solution require a subscription.
Coding QuestionsRobloxMaximum Drop Points in One Line
2/5This algorithmic problem, featured in Cisco interviews, challenges candidates to analyze spatial coordinates representing terrain points and determine an optimal linear trajectory that maximizes coverage. The evaluation focuses on spatial reasoning, array processing, and finding efficient geometric solutions. To view the complete prompt, thorough explanation, and optimal source code solution, a paid subscription is required.
Coding QuestionsCiscoUnique Digits in Range
2/5Featured in Agoda interviews, this algorithmic puzzle requires counting integers within a given numerical interval that contain exclusively distinct digits. It evaluates your digit manipulation techniques and efficiency in handling range-based queries. Unlock the full challenge details and clean implementation by subscribing.
Coding QuestionsAgodaMatrix Multiplication
3/5Practice a fundamental linear algebra computation challenge reported from WeRide technical interviews. This problem requires you to compute the product of two multi-dimensional matrices while properly validating dimensional compatibility and handling error conditions. It examines your command over multi-dimensional array traversal, inner product calculations, and edge-case validation. The full problem details and efficient reference solution are available exclusively to subscribers.
Coding QuestionsWeRideMissing Number (Variant Not Starting From 0, Binary Search)
3/5Reported during Arista Networks hiring loops, this variation of a classic interview puzzle asks you to pinpoint a missing integer within a strictly sorted sequence that begins at an arbitrary starting value instead of zero. The challenge tests your analytical skills in comparing straightforward linear scans against logarithmic approaches using binary search to optimize execution speed. You will need to reason about boundary conditions and array indices effectively. Explore the full problem details and expert code walkthrough with a subscription.
Coding QuestionsArista NetworksProbability of a Dice Roll Sum
3/5This Belvedere Trading interview question challenges you to compute the likelihood of obtaining a specific aggregate outcome when throwing standard multi-sided dice multiple times. It evaluates your grasp of probability theory, combinatorics, and dynamic programming approaches for counting valid outcomes. To view the full problem statement and expert model solution, a subscription is required.
Coding QuestionsBelvedere TradingPrint numbers not divisible by 5 or 7
2/5This Bank of America interview question challenges candidates to implement a basic numerical filter. You'll need to write code that processes a sequence of integers up to a given upper bound. The core task involves applying specific exclusion criteria: numbers that are multiples of either five or seven should be skipped. This problem assesses fundamental programming concepts such as loops, conditional statements, and arithmetic operations, ensuring a solid grasp of iterative logic. The full problem description and a model solution are available with a subscription.
Coding QuestionsBank of AmericaCount Fancy Numbers
3/5Reported as a Hudson River Trading interview question, this mathematical coding task requires counting integers below a given threshold whose base-4 representation consists exclusively of restricted digits. Due to large input limits, brute-force enumeration will fail, necessitating a sophisticated digit-counting or combinatorics approach. This problem examines mathematical reasoning and efficient constraint handling. The full problem statement and optimal solution require a subscription.
Coding QuestionsHudson River TradingResource Allocation / Balancing Teams Equal Sum
2/5Featured in MathWorks evaluations, this problem involves balancing two numerical collections containing empty slots by replacing placeholders with positive integers to achieve identical total sums. It measures your mathematical reasoning and greedy strategy execution to find optimal balancing points or determine impossibility. Access to the full problem text, edge-case analysis, and complete model solution requires a paid subscription.
Coding QuestionsMathWorksVending Machine Design
2/5In this Handshake interview question, you are tasked with designing a functional vending machine backend with a primary focus on coin change distribution logic. The challenge requires writing clean, working code that accurately computes the minimum or standard set of currency denominations needed to return a specific monetary amount in cents. This problem tests your grasp of greedy algorithms, modular arithmetic, and clean object-oriented design principles. Unlock the full implementation details and expert solution with a subscription.
Coding QuestionsHandshakeVan Eck-like Sequence: N-th Term
3/5Generate a self-referential integer sequence where each term reports how long ago the previous term last appeared, and return the term at a given position. This Bloomberg question is a simulation whose only subtlety is bookkeeping: the lookup table must record the previous term's position after the new term is computed, not before. You will keep last-seen positions in a map, handle the first appearance case, and reason about the memory the sequence needs. A subscription unlocks the full problem and the reference solution.
Coding QuestionsBloombergCount Good Strings
3/5This Commvault interview question involves combinatorial counting and sequence validation under strict structural constraints. You must determine the total number of valid configurations of two distinct characters where prefixes maintain a specific balance condition, mirroring properties of well-formed parentheses or Dyck paths. The challenge evaluates advanced dynamic programming, combinatorics, and modular arithmetic skills. The complete problem details, mathematical derivation, and optimized code solution require a subscription.
Coding QuestionsCommvaultAshley Loves Numbers (Financial Engineer)
3/5Count the integers in each of several ranges whose decimal digits are all different from one another. This Bloomberg question invites a brute-force loop and then asks what happens when the ranges get wide, which is where digit-by-digit counting earns its keep. You will test the repeated-digit condition cheaply, answer many queries without redoing shared work, and handle ranges that cross a digit-length boundary. Subscribers get the full problem and the model solution.
Coding QuestionsBloombergDiscount Validation
2/5Test your ability to verify business logic and mathematical accuracy with this e-commerce checkout validation problem reported during DraftKings technical evaluations. You will write a program that cross-examines multiple item valuations against complex promotional markdown rules to ensure the final calculated cart total is entirely correct. This challenge evaluates your capability to process structured numerical datasets and implement precise conditional logic rules. Gain full access to the comprehensive problem breakdown and ideal codebase by subscribing to our platform.
Coding QuestionsDraftKingsCard Counting Game
2/5Explore probability and simulation concepts through a card game scenario reported during technical interviews at Talroo. This puzzle challenges you to determine the expected number of draws required to encounter specific target cards within a standard randomized deck. It evaluates your fundamental understanding of probability distributions and algorithmic counting techniques. To view the complete problem statement along with the optimal coded solution, a paid subscription is required.
Coding QuestionsTalrooFairly Distribute Money With Limits
3/5This reported interview question from Gusto evaluates your ability to handle resource allocation under specific constraints and limits. You are tasked with distributing a fixed pool of discrete units among a group of recipients as equitably as possible while respecting individual maximum caps. The challenge tests your logic for balancing proportional distribution and surplus handling without violating upper boundaries. The full problem and model solution require a subscription.
Coding QuestionsGustoCalculate Time Difference in HH-MM Format
2/5This HackerRank interview question challenges candidates to compute the shortest forward time gap between a given reference point and a collection of daily timestamps. This problem evaluates your ability to handle cyclic time calculations, manage minute-level conversions, and properly format the resulting duration. Access to the complete problem description and expert model solution requires an active subscription.
Coding QuestionsHackerRankFewest Square Numbers Summing to n
3/5A coding question on writing a positive integer as a sum of perfect squares. The learner must find a decomposition with the fewest possible terms and return the actual squares, not just their count, for inputs up to ten thousand.
Coding QuestionsPinduoduoPow(x, n) — Fast Power with Negative Exponents
3/5A coding question on computing a real number raised to an integer power that may be negative or very large, without a built-in power function. It checks how you meet a strict running-time bound, handle reciprocals and signs, and reason about floating-point precision.
Coding QuestionsWeRideQR OA — Linear Interpolator
3/5This Two Sigma coding question asks you to evaluate a function defined by connecting data points with straight segments, both inside and beyond the range of the data. It tests binary search, careful numerical edge cases and designing a class for fast repeated queries.
Coding QuestionsTwo SigmaProgressive Marginal Tax Calculator
3/5This Interactive Brokers coding challenge requires implementing a precise progressive marginal tax calculator given a sorted structure of financial brackets and cutoffs. The exercise evaluates your ability to segment numerical values accurately, iterate through boundary conditions, and accumulate fractional totals according to tax regulations. Unlocking the complete problem description, edge-case datasets, and the optimal model solution requires a paid subscription.
Coding QuestionsInteractive BrokersTraffic Light State Machine Design
2/5This Keysight coding interview question focuses on finite state machine design for a standard traffic signal system. You must implement a cyclical mechanism that transitions between distinct operational phases based on predefined temporal durations. The exercise evaluates your capability to manage state persistence, modular logic, and time-based progression accurately. Gain full access to the problem details, test cases, and model implementation by signing up for a subscription.
Coding QuestionsKeysightReverse a 32-bit Integer
2/5Sharpen your fundamental manipulation skills with this numerical reversal puzzle often encountered in software engineering interviews at Keysight. The task requires you to transform a standard numerical input while strictly preserving its original sign and guarding against arithmetic overflow boundaries common in constrained data types. It serves as an excellent test for edge-case management and bitwise or mathematical constraints handling in low-level programming. To view the complete problem description and an optimized model implementation, please subscribe.
Coding QuestionsKeysightSimplified Path for GPS Recorder
3/5In this engaging interview question reported at Axon, you are tasked with streamlining a sequence of geographic coordinates gathered by a tracking device. The objective is to filter out redundant intermediate locations that fall precisely along a straight trajectory, preserving only the vital turning points. This challenge evaluates your geometric reasoning and data reduction skills using chronologically ordered spatial inputs. The complete problem description and optimal model solution require a subscription.
Coding QuestionsAxonGet Minimum Operations to Sort Array
3/5Encountered during technical interviews at Moveworks, this coding puzzle asks engineers to find the fewest division steps required to put a numeric array into non-decreasing order. Participants are allowed to split any integer into smaller positive components during the sorting process. The challenge tests greedy algorithmic thinking, array manipulation, and mathematical optimization under strict constraints. To view the complete analysis and tested programming solution, a subscription is required.
Coding QuestionsMoveworksCalculate Tax
2/5This Interactive Brokers interview question requires you to compute cumulative financial liabilities based on progressive taxation thresholds and individual earnings. You must parse multiple tier limits and percentage rates to accurately determine the total levy owed on a given amount of capital. This exercise evaluates your numerical computation skills, conditional logic, and capability to process structured sequential input data. Unlock the full problem description and precise model solution by subscribing.
Coding QuestionsInteractive BrokersFormat an Integer with Thousands Separators
2/5A coding question on writing an integer with a comma after every three digits, counted from the right, with negative numbers and arbitrarily large values handled. The grouping has to be built by hand rather than with a formatting built-in.
Coding QuestionsHudson River TradingCompute Euclidean Distance Between Two 3D Points
2/5This Dandy interview problem evaluates fundamental computational geometry skills by asking you to determine the spatial distance separating two coordinate locations in a three-dimensional environment. The exercise focuses on precision handling and implementing standard mathematical formulas efficiently in code. Access the full problem statement, test cases, and model solution by upgrading your account.
Coding QuestionsDandyMaximize revenue by selling items with diminishing price
3/5Maximizing retail profit when item costs dynamically decrease as inventory depletes is the objective of this Squarepoint interview question. You must strategically fulfill customer purchases by selecting products in an optimal sequence to achieve the highest possible cumulative earnings. This puzzle tests your grasp of greedy algorithms, priority queues, and mathematical optimization under changing states. Access to the full problem requirements, sample inputs, and a detailed model solution requires a subscription.
Coding QuestionsSquarepointTower of Hanoi (recursion)
3/5Report the fewest moves needed to shift a stack of graded disks onto another peg without ever resting a larger disk on a smaller one. This Apple question has a closed-form answer and a recursive derivation, and the interviewer usually wants both. You will state the recurrence, reduce it to a formula, and note where the result stops fitting in a machine integer as the disk count grows. Subscribers can read the complete problem and the full derivation.
Coding QuestionsAppleEvaluate a Basic Arithmetic Expression (Calculator II)
3/5Reported as a standard technical assessment at Otter.ai, this problem requires you to parse and compute mathematical expressions adhering to standard operator precedence rules without parentheses. You will need to handle sequential operations, integer division truncation, and whitespace management efficiently within strict time limits. This challenge tests your mastery of stack-based parsing algorithms and string manipulation techniques. To view the comprehensive problem text and fully articulated code solution, a subscription is required.
Coding QuestionsOtter.aiImplement TF-IDF from Scratch
3/5During an Apple machine learning telephone screening, candidates may be asked to build a term frequency inverse document frequency algorithm completely from scratch using standard Python without relying on external libraries like scikit-learn. This evaluation measures your fundamental understanding of statistical text processing formulas, tokenization procedures, frequency calculations, and your ability to address mathematical ambiguities regarding smoothing and normalization out loud. Access to the complete problem breakdown, optimal implementation strategies, and expert model solutions requires an active site subscription.
Coding QuestionsAppleContinuous Subarray Sum
3/5A coding question on arrays and remainders: decide whether any stretch of at least two consecutive numbers adds up to an exact multiple of a given divisor, including the special case where the divisor is zero. It stresses edge-case handling and a linear-time scan.
Coding QuestionsMetaHappy Number
2/5A coding question on repeatedly transforming a number by its digits and deciding whether the process ends at one or runs forever. A follow-up asks how to serve an enormous number of such checks cheaply.
Coding QuestionsAppleValidate Triangle and Classify Point Inclusion
2/5A coding question on computational geometry with integer coordinates: check that three points make a genuine triangle, then report which of two further points fall within it, edges included. It tests exact arithmetic and careful handling of degenerate and boundary cases.
Coding QuestionsGoldman SachsTwo-ball Drop Problem
3/5This classic interview puzzle, featured by Talroo, challenges you to find the most efficient strategy for testing durability limits using a limited number of identical testing objects. The scenario evaluates your logical reasoning, worst-case optimization mindset, and mathematical problem-solving skills rather than heavy programming. To view the complete analytical breakdown and the mathematically sound model solution, a paid subscription is required.
Coding QuestionsTalrooSimulate the Monty Hall Problem
2/5This engaging Thumbtack interview problem asks you to write a simulation of a famous probability paradox involving three doors, a host, and a prize. You will model both switching and non-switching strategies over numerous trials to empirically calculate success rates and demonstrate statistical reasoning. The complete challenge specifications, simulation guidelines, and reference solution require a subscription.
Coding QuestionsThumbtackInterpolate Y-Value for Given X-Value
3/5Solve a numerical estimation puzzle frequently posed during Trade Desk technical screenings. The assignment requires building a robust lookup mechanism that estimates an intermediate ordinate value from a sorted set of coordinate pairs using linear approximation techniques. This challenge examines your binary search proficiency, boundary condition handling, and numerical analysis fundamentals for monotonic datasets. Unlock the complete problem guidelines, edge-case considerations, and verified source code with a subscription.
Coding QuestionsThe Trade DeskDelete Element at Flattened Index From Sorted Intervals
3/5A coding question about editing a compressed sorted set of integer ranges when one element is removed by its position. It covers boundary cases where a range shrinks, vanishes or splits, and values too large to expand.
Coding QuestionsDatabricksScale Ingredient Quantities
2/5As a practical coding task featured by Upstart, this question requires you to process structured text data containing ingredient measurements and scale them proportionally based on a target group size. The exercise evaluates your string manipulation skills, basic arithmetic scaling, and ability to handle formatted input data gracefully. You will need to parse text lines accurately while preserving units and nomenclature. Access to the complete problem definition and a clean model solution requires an active subscription.
Coding QuestionsUpstartRomanizer
2/5This common interview task from BNP Paribas challenges software engineers to transform standard numerical values into their traditional Roman numeral counterparts. Participants must process a collection of integers and correctly map them following historical notation rules, handling subtractive combinations and repetitive symbols accurately. The exercise tests foundational algorithm design, looping mechanics, and conditional logic handling. The full problem statement, test suites, and optimized code solutions are available exclusively to subscribers.
Coding QuestionsBNP ParibasFormat Bytes into Human-Readable String (B/KB/MB)
2/5Encountered during Upstart technical screenings, this coding exercise requires transforming a raw integer representing a byte count into a clean, human-friendly string using standard storage units. You will practice scaling values across bytes, kilobytes, and megabytes while applying precise rounding rules to two decimal places. This task tests fundamental arithmetic manipulation, boundary condition handling, and output formatting proficiency. Gain full access to the complete problem instructions and verified model solution with a subscription.
Coding QuestionsUpstartColor Fence Posts So Neighbours Differ
2/5A coding question about counting the ways to color a row of posts when neighbouring posts must not share a color. The learner returns the exact count for up to a thousand posts and colors.
Coding QuestionsRippleRoller Coaster Performance Calculation
2/5Explore this Zoox reported interview question focusing on computational modeling, where you will write a program to evaluate the safety and excitement metrics of an amusement park ride. The challenge tests your ability to apply mathematical formulas involving velocity and vibrational frequency to compute specific performance indicators. You will practice handling numerical constraints and formatting floating-point outputs cleanly. Unlocking the full problem description and expert model solution requires an active subscription.
Coding QuestionsZooxFunnel Algorithm Problem
3/5Reported from Faire interviews, this algorithmic challenge requires you to distribute a sorted sequence of numbers into specialized groups based on multiplicative ratios. The problem tests your advanced data structuring capabilities and pattern recognition over large numeric datasets. Unlock the complete challenge specification and optimized solution code with a subscription.
Coding QuestionsFaireMax Profit from Cutting Rods into Equal Sale Length
3/5This intriguing optimization task, featured in Anduril coding rounds, asks you to determine the most lucrative strategy for chopping raw materials into uniform segments while factoring in processing fees and leftover waste. It tests your mathematical modeling, greedy choice evaluation, and ability to maximize financial outcomes under realistic constraints. The problem requires careful consideration of scaling values and edge cases. Gain full access to the strategic walkthrough and comprehensive code implementation through a paid subscription.
Coding QuestionsAndurilOOD — Treatment Frequency Scheduler
3/5Reported from Oracle technical screens, this object-oriented design question requires building a flexible scheduling engine to generate recurring medical treatment schedules within specified timeframes. You must model various recurrence patterns and efficiently compute all valid occurrence timestamps across multiple patients. The task evaluates your ability to design clean class hierarchies and handle complex date and time arithmetic cleanly. Get full access to the complete design patterns and reference solution by subscribing.
Coding QuestionsOracleCount Divisible Permutations
3/5A coding question about counting arrangements of the numbers 1 to n in which every number and its position are related by divisibility. The learner must return the exact count for n up to 15.
Coding QuestionsDeloitteLeft-to-Right Expression Operators
3/5Given a string of digits and a target number, list every way to place plus, minus and times signs between the digits so the expression equals the target. Evaluation ignores normal operator priority, and operands may not carry leading zeros.
Coding QuestionsPinterestFind Last Affected System
3/5In this reported interview question from Wells Fargo, you must track the elimination sequence of networked systems arranged in a ring and infected by a spreading virus that systematically skips a fixed number of nodes. The goal is to identify the very last system remaining in the network after all others have been disabled. This problem assesses your understanding of circular data structures, modular arithmetic, and simulation techniques. Unlock the detailed problem description and professional solution with a subscription.
Coding QuestionsWells FargoImplement round() From String + Round-to-Precision
3/5This string manipulation and arithmetic challenge, featured in Pinterest interviews, tests your ability to implement custom rounding logic directly on text representations of numbers without converting them to floating-point types. You will handle complex edge cases involving standard rounding rules and implement a precision-based rounding function using arbitrary scale strings. Unlock the full problem details and expert solution by subscribing to our platform.
Coding QuestionsPinterestMeasure an Exact Volume with Two Jugs
3/5A coding puzzle about two unmarked jugs and an unlimited tap: decide whether a requested amount of water can be produced exactly, in one jug or across both. Jug sizes can be as large as a billion liters.
Coding QuestionsWoven PlanetFast Power and Modular Power
3/5A coding question on raising a number to an integer power, including negative exponents, when the exponent can be in the billions. A follow-up asks for the same computation on integers modulo a given value, with exponents as large as ten to the eighteenth.
Coding QuestionsMetaFind the Number of Squares Formed by Given Points
3/5This Zillow interview question requires you to compute the total number of geometric squares that can be constructed from a given set of coordinates distributed across a grid. It tests your computational geometry knowledge, spatial awareness, and ability to optimize subset searches to avoid excessive time complexity. You must evaluate all possible vertex combinations to count valid configurations accurately. Discover the complete problem breakdown and optimal algorithmic solution by obtaining a subscription.
Coding QuestionsZillowDelivery Expense Conversion
2/5Featured in technical screens at Ripple, this practical exercise tasks you with converting a monetary value given in standard currency units into smaller fractional subunits while completely avoiding floating-point inaccuracy issues. You will need to handle numeric casting and precision constraints carefully while respecting operational limits. It tests fundamental arithmetic handling and data type awareness in financial contexts. The complete problem description and professional solution require a subscription.
Coding QuestionsRippleSmallest Permutation ≥ Lower Bound
3/5Combinatorial generation and boundary constraints form the core of this intriguing algorithmic challenge, which has been featured in technical interviews at Airbnb. The objective is to construct the smallest possible integer string or numerical value using a specified multiset of digits, potentially constrained by a given threshold. This puzzle tests your proficiency with backtracking, permutations, greedy digit selection, and handling edge cases with leading zeros. Access to the complete problem description and optimized model solution requires a subscription.
Coding QuestionsAirbnbFibonacci via Matrix Exponentiation
3/5This reported interview question from WeRide challenges candidates to compute large sequence values efficiently without relying on standard linear approaches. Instead, applicants must leverage mathematical properties of linear transformations to achieve logarithmic performance. You will need to demonstrate strong algorithmic optimization skills to handle large inputs within tight constraints. Unlocking the complete problem description and the optimal model solution requires an active subscription.
Coding QuestionsWeRideImplement itoa for 32-bit Signed Integer
3/5This coding challenge, featured in interviews at Hudson River Trading, tests your ability to convert a numerical value into its textual base representation without relying on standard library functions. Candidates must carefully handle edge cases, negative signs, and extreme lower bounds typical of 32-bit integer limits. It thoroughly examines your low-level manipulation skills and logical precision. Access to the full problem statement and expert model solution requires a paid subscription.
Coding QuestionsHudson River TradingBuild an Arithmetic Expression to Reach a Target
3/5This algorithmic challenge, frequently reported during software engineering evaluations at Waymo, requires candidates to construct valid mathematical equations that evaluate to a specified outcome using a sequence of given numbers. It tests recursive problem-solving, operator precedence management, and combinatorial search strategies. Unlock the complete problem guide and professional code implementation with a subscription.
Coding QuestionsWaymoPrint Pascal's Triangle (Symmetric Formatting)
2/5Explore mathematical number generation paired with aesthetic output formatting in this engaging coding challenge reported from Faire interviews. The task evaluates your ability to construct numerical sequences based on additive rules while correctly aligning text elements for symmetric visual presentation. You will practice managing multi-dimensional row generation, spacing calculations, and clean console output formatting. Hone your implementation details and string alignment proficiency to ace similar structural coding rounds. The full problem and model solution require a subscription.
Coding QuestionsFaireEric's Sequence
4/5This Codeium interview task requires you to construct a unique integer sequence that satisfies strict relative magnitude constraints and sum conditions based on a provided array. You must generate distinct numbers while minimizing the absolute peak value within the sequence. The problem thoroughly examines advanced mathematical reasoning, array manipulation, and constraint optimization strategies. Gain instant access to the full problem text and a comprehensive model solution by purchasing a subscription.
Coding QuestionsCodeiumCome Looking for the Smallest Num Which Must Be > Than a Specific Num.
3/5Featured in General Motors technical assessments, this coding challenge requires finding the smallest integer greater than a given value whose digit sum equals twice the digit sum of the original number. Focusing primarily on algorithmic correctness within constrained input ranges, the task evaluates your ability to manipulate numerical digits and implement conditional search logic effectively. Unlocking the complete problem statement, detailed explanation, and clean model solution requires an active subscription.
Coding QuestionsGeneral MotorsCalculate Change
2/5In this practical coding exercise reported from interviews at PayPay, you are tasked with determining the correct denominations of currency to return as change after a retail transaction. Candidates must compute the difference between given cash and product costs, then distribute standard bill and coin denominations while formatting the resulting items alphabetically. Reviewing the complete problem statement and the comprehensive model solution requires a paid subscription.
Coding QuestionsPayPayReverse Digits of a 32-bit Integer
3/5A coding question on digit manipulation and range checking. The learner must produce the integer with its digits in reverse order, keep its sign, and return zero when the result no longer fits the fixed-width range.
Coding QuestionsWarner Music GroupChecksum Aggregator
3/5In this Fortinet coding interview question, candidates must compute modular arithmetic aggregations across all possible identifier pairs in a distributed network simulation. The challenge requires designing an efficient mathematical approach to avoid performance bottlenecks caused by nested iteration over large datasets. This problem tests your number theory knowledge and ability to optimize complex summations. Unlock the full problem description and a thoroughly explained model solution with a subscription.
Coding QuestionsFortinetExpression Strings That Evaluate to Target
2/5A coding question on combining pairs of numbers with arithmetic operators to hit a target. It tests careful handling of operand order, exact division, negative values and duplicate results.
Coding QuestionsNetflixSequential Pipeline Job Completion
3/5This Plaid coding challenge focuses on optimizing resource allocation within a multi-stage processing pipeline. You need to calculate the total number of jobs that can be fully completed within a given time limit. The pipeline stages must execute sequentially, but within each stage, multiple workers can process jobs in parallel. This problem tests your ability to manage time constraints, understand parallel execution dynamics, and efficiently schedule tasks across different stages. The full problem description and a model solution are available with a subscription.
Coding QuestionsPlaidArithmetic Expression Evaluator with Parentheses
4/5Evaluate a text arithmetic expression that mixes the four basic operators with nested parentheses and returns an integer. The learner must respect precedence, left-to-right ties and truncating division, including on negative intermediate values.
Coding QuestionsRoktCount Unique Paths in a Grid
3/5Determine all possible movement routes across a matrix from the top-left corner to the bottom-right destination in this classic Okta interview task. The challenge tests your dynamic programming and combinatorics knowledge by restricting movement to specific directions only. You must construct an efficient approach that scales well with grid dimensions while avoiding redundant computations. Access to the complete problem description, constraints, and optimized model solution requires a subscription.
Coding QuestionsOktaCount Numbers Passing All Intervals (Intersection Filter)
3/5In this Squarespace interview question, you are tasked with identifying how many elements from a given collection fall squarely within the overlapping region of a set of numeric boundaries. This problem tests your efficiency in interval math, range intersection logic, and array filtering techniques. Explore the complete problem statement and optimal algorithmic solution by obtaining a paid subscription.
Coding QuestionsSquarespaceFast Exponentiation (base^exp)
3/5This algorithmic coding challenge, reported from WeRide, requires implementing an efficient exponentiation routine using custom multiplication without relying on built-in power functions. The objective is to achieve logarithmic time complexity relative to the exponent size through clever bitwise or recursive operations. Unlock the comprehensive problem description and optimal model solution by becoming a subscriber.
Coding QuestionsWeRideLargest Number With Non-Decreasing Digits
3/5Find the biggest whole number that does not exceed a given limit and whose digits never decrease from left to right. The task rewards careful handling of numbers where fixing one digit disturbs the digit before it.
Coding QuestionsOracleCalculate Pressure from Speed
2/5Practice this straightforward lookup puzzle encountered in technical rounds at SpaceX. The goal is to map an arbitrary numeric input to a corresponding discrete category value based on predefined, bounded numerical ranges. This exercise assesses your ability to perform efficient range calculations, handle boundary conditions, and structure clean conditional logic. It serves as a great warm-up for evaluating mathematical mappings in embedded or systems programming. The complete problem statement and model solution require a subscription.
Coding QuestionsSpaceXFind Numbers with Two Sevens Divisible by Three
2/5This HackerRank interview challenge requires you to filter a sequence of integers to identify numbers that contain exactly two occurrences of the digit seven and are also divisible by three. The task tests your string manipulation skills, numerical digit extraction, and modular arithmetic logic while preserving the original sequence order. It serves as a great practice for combining multiple conditional filters in data processing tasks. To access the full problem details and verified solution code, a subscription is required.
Coding QuestionsHackerRankRequest Routing System (Haversine Distance)
3/5Design a command-driven geographic routing engine frequently encountered in backend engineering evaluations at Stripe. This task requires implementing geometric calculations to determine great-circle distances between coordinate points on the Earth's surface. You must build a robust registry that dynamically manages endpoint health statuses and efficiently queries the nearest available server using geospatial metrics. Get access to the full problem statement and clean reference implementation by subscribing.
Coding QuestionsStripeQR OA — Efficient Univariate OLS Regression
3/5This analytical coding challenge, reported from Two Sigma online assessments, requires computing univariate ordinary least squares regression slopes and dynamically updating them as new data points arrive in a streaming fashion without recomputing from scratch. It assesses mathematical fluency, statistical updates using sufficient statistics, and efficient data processing. Access the complete problem specification and verified model solution with a paid subscription.
Coding QuestionsTwo SigmaThe Oracles
3/5Delve into an algorithmic sequence generation puzzle highlighted in recent Rubrik interview loops, where you simulate growth operations and retrieve elements from an astronomically large virtual array without actually constructing it. The challenge demands clever indexing and mathematical reduction to handle massive scaling factors and lookup queries within strict performance limits. It evaluates your advanced recursion, lazy evaluation, and big-integer management skills. Unlock the comprehensive analysis and verified model solution with a subscription.
Coding QuestionsRubrikPermutation Check and Integer-Exponent Power
3/5A coding question with two short parts: validating that a list holds each value of a range exactly once, and computing an integer power of a float for very large exponents. It tests edge cases such as empty input, out-of-range values and negative exponents.
Coding QuestionsTeslaString Shift
2/5This reported coding interview question from Rubrik challenges candidates to manipulate a text sequence by applying a series of directional displacement operations. The problem evaluates your ability to handle cumulative arithmetic movements and efficiently compute final character indices without redundant processing. You will need to manage boundary conditions and wrapping behavior effectively. Access to the comprehensive problem description and optimal algorithmic approach requires a subscription.
Coding QuestionsRubrikAdd Two Reversed Digit Lists
2/5A coding question about adding two non-negative whole numbers that are given as lists of decimal digits, least significant digit first. The learner returns the total in the same digit-list form, coping with lists of different lengths, a carry into a new top digit, and a zero result.
Coding QuestionsCiscoImplement a Calculator Supporting Basic Operations
3/5A coding question on evaluating a text expression that mixes the four basic arithmetic operations with ordinary precedence and whole-number division. It checks operator precedence, left-to-right evaluation, division that drops the fraction, and long inputs with stray spaces.
Coding QuestionsRoktMinimize Value by Parentheses in Concatenated Expression
3/5This Visa interview question challenges candidates to evaluate numeric strings and strategically place grouping symbols to achieve the smallest possible arithmetic result. The problem evaluates your ability to handle large numerical inputs and apply greedy or dynamic programming techniques for expression parsing. You will need to carefully consider operator precedence and string manipulation. To access the complete problem description and an optimized model solution, a paid subscription is required.
Coding QuestionsVisaNext Notification Date Calculation
3/5This Zillow interview question focuses on practical date and time calculations. You are provided with a current date, a specific day of the month for notifications, and a frequency (either monthly or quarterly). Your task is to accurately determine the very next upcoming notification date based on these parameters. This problem evaluates your ability to handle calendar logic, including month and year transitions, and apply conditional rules for different notification schedules. The full problem and model solution require a subscription.
Coding QuestionsZillowMinimum Operations to Reduce an Integer to 0
3/5Given a non-negative integer, find the fewest steps needed to bring it to zero when each step adds or subtracts a power of two. The task rewards careful reasoning about which signed powers are worth using. Access to the full problem breakdown and a clean solution requires an active subscription.
Coding QuestionsSalesforceCounting Arrays
3/5Exploring combinatorial state spaces and numerical sequences is a common theme in algorithmic screening, exemplified by this Demonware interview challenge. Participants must determine the total quantity of distinct arrays that can be generated through iterative decrement operations on subsets of elements, ensuring results are appropriately bounded. This problem exercises deep combinatorial reasoning, pattern recognition, and efficient modulo arithmetic. Access to the complete problem text, detailed constraints, and expert solution is reserved for subscribed members.
Coding QuestionsDemonwareFormat a Duration as Human-Readable Time
2/5In this classic string formatting and time conversion problem reported from Netflix, you are tasked with transforming a raw duration given in seconds into an expressive, human-readable format broken down across multiple time units. The challenge requires omitting zero-valued intervals while strictly retaining seconds, applying correct pluralization rules, and formatting separators naturally without relying on external date or time libraries. It tests your attention to detail and edge-case handling for string manipulation. Unlocking the full problem description, test cases, and clean reference solution requires a subscription.
Coding QuestionsNetflixNumber of Ways to Split Array into Three Parts
3/5This algorithmic problem, featured in recent DocuSign technical screening rounds, challenges you to compute the number of valid ways to partition a linear sequence into three contiguous non-empty sections based on specific numeric summation constraints. It tests your ability to optimize prefix sums and range queries to achieve an efficient linear time complexity. To view the full problem description, complete test suites, and an optimized model solution, a subscription is required.
Coding QuestionsDocuSignInteger to English Words
4/5Convert a non-negative integer up to about two billion into its English-word form with correct spacing and no empty groups. The task checks careful handling of number-name rules and edge cases like zero and skipped groups.
Coding QuestionsCarvanaDice Roll Simulator and Multiplication-Free Factorial Calculation
2/5This reported Nomura interview challenge tests your foundational programming logic by asking you to build a stochastic simulator for random dice outcomes accompanied by verification test cases. Additionally, it requires implementing a mathematical factorial computation using unconventional constraints that forbid standard multiplication operators. You will need to demonstrate creative problem-solving and algorithmic thinking to handle these distinct computational tasks efficiently. Access to the complete problem description, edge-case evaluations, and fully functional model solutions requires an active subscription.
Coding QuestionsNomuraWeighted Sampling from Score Distribution
3/5This Pinterest coding challenge asks you to implement a weighted sampling mechanism. Given a collection of strings, each associated with an arbitrary real-valued score, the task is to select a single string such that its probability of selection is directly proportional to a derived, normalized version of its score. The problem specifically emphasizes the importance of addressing numerical stability issues that arise when dealing with a wide range of input scores, potentially involving very large, very small, or negative values. It tests your understanding of probability distributions and robust numerical computation. The full problem and model solution require a subscription.
Coding QuestionsPinterestRedistribute Megaseeds
4/5This algorithmic puzzle, reported from software engineering interviews at Rubrik, explores resource redistribution and mathematical optimization over sequential crates. Participants must determine the minimum number of adjacent shift operations required so that every container holds a multiple of a shared integer divisor. The challenge demands efficient handling of large numerical constraints and clever mathematical insights to avoid excessive computation times. To examine the complete problem constraints, underlying mathematical properties, and fully optimized source code, upgrade your account to a paid subscription.
Coding QuestionsRubrikReverse Integer (LC 7)
3/5Frequently encountered in Tencent technical screenings, this classic coding problem requires you to flip the numerical digits of a signed integer while properly handling boundary limits. You need to account for potential overflow issues that occur when reversed values exceed standard 32-bit storage capacities. The exercise tests fundamental arithmetic operations and edge-case management in data types. Gain full access to the comprehensive problem statement and verified code solution with a subscription.
Coding QuestionsTencentValid Set Cards
3/5Encountered during technical screenings at Snapchat, this puzzle challenge requires verifying whether a collection of multidimensional items satisfies specific combinatorial matching criteria across multiple attributes. It tests your combinatorial logic, data validation skills, and ability to handle structured categorical data cleanly. Unlock the full problem statement and optimal programmatic solution by securing a subscription.
Coding QuestionsSnapchatStock Prices
3/5This Rubrik interview question delves into array manipulation and combinatorics. You are given a sequence of daily stock prices and a divisor. The objective is to identify and count all unique combinations of three distinct days, where the sum of the stock prices on those days is perfectly divisible by the given divisor. This problem requires careful consideration of indices and efficient ways to iterate through combinations while applying modular arithmetic principles. It's an excellent test of your ability to handle numerical constraints and optimize for performance. The full problem and model solution require a subscription.
Coding QuestionsRubrikMinimize Maximum of Array
3/5This Visa interview question presents an array manipulation challenge focused on optimization. You are given an array of non-negative integers and a specific operation: you can transfer a unit from any element to its immediate left neighbor. The goal is to perform these operations strategically any number of times to achieve the smallest possible value for the maximum element in the array. This problem requires careful thought about how to distribute values to minimize peaks, testing your ability to identify an optimal strategy for array balancing. The full problem description and a model solution are available with a subscription.
Coding QuestionsVisaNon-Consecutive Process Allocation Counting (Modulo 1e9 + 7)
2/5This Citadel assessment problem asks you to calculate valid scheduling permutations across consecutive time slots with adjacency restrictions. It evaluates combinatorial reasoning and fast modular arithmetic techniques to handle large numerical outputs. You will formulate a recurrence relationship to efficiently count non-overlapping configurations. The full problem breakdown and optimal code implementation require a subscription to access.
Coding QuestionsCitadelPath Between Nodes in a Fibonacci Tree
4/5Reported as a challenging Databricks interview question, this task involves navigating massive recursively defined binary trees without actually instantiating the nodes in memory. You must rely on mathematical properties and preorder traversal formulas to locate the lowest common ancestor and trace the exact route between two given nodes. This problem tests advanced recursive comprehension, mathematical deduction, and tree traversal optimization. Unlock the complete problem statement, algorithmic breakdown, and production-ready solution by subscribing.
Coding QuestionsDatabricksMatrix Product Computation
3/5This foundational linear algebra challenge, reported during interviews at GEICO, requires you to compute the product of two multidimensional numeric arrays while respecting specific structural constraints. The exercise evaluates your grasp of matrix dimensions, algorithmic efficiency, and how to handle incompatible shapes gracefully. Implementing this function efficiently involves mastering nested iteration and understanding the time and space trade-offs associated with computational mathematics. To view the complete problem statement and study a robust model solution, a subscription is required.
Coding QuestionsGEICOMaximum Product Path in a Complete Directed Graph
4/5Reported as a rigorous technical assessment for Two Sigma, this graph theory challenge asks you to determine a unique path across a complete directed structure that maximizes the total product of edge weights without revisiting nodes. It tests advanced algorithmic concepts, including logarithmic transformations to convert multiplicative objectives into additive ones, alongside dynamic programming with bitmasking. Access to the full problem text, complexity analysis, and verified model solution requires a subscription.
Coding QuestionsTwo SigmaLayover Experiences — Exact-Fill with Min Count
3/5In this engaging algorithmic puzzle frequently encountered during Airbnb technical screenings, applicants must calculate the fewest possible item selections needed to reach an exact numerical target sum using a given set of repeatable values. This scenario evaluates dynamic programming and backtracking concepts, requiring candidates to handle optimization constraints effectively while avoiding common performance traps. Mastering this challenge sharpens your ability to tackle complex resource allocation dilemmas. Unlock the full problem breakdown and clean model implementation by obtaining a subscription.
Coding QuestionsAirbnbArithmetic subarrays of length at least 2
2/5A coding question on splitting an integer array into as many separate, non-overlapping stretches as possible, where each stretch has at least two elements and steps down by exactly one each time. The task is to return that maximum count.
Coding QuestionsIBMSort a Quadratic-Transformed Sorted Array
3/5A coding question on applying a quadratic to a sorted list and returning the outputs in order, including parabolas that open downward. It tests reasoning about where the largest and smallest values of the function fall over a sorted input.
Coding QuestionsWaymoCount Same-Bit Numbers
3/5A coding question on binary representations and counting. The task asks for how many other integers share a given number's count of set bits within the smallest all-ones range that contains it, for inputs far too large to enumerate.
Coding QuestionsSoFiAdd One to a Digit Array
2/5A coding question on adding one to a number stored as an array of digits. It checks careful handling of carries and of the case where the result gains a digit, and asks how the idea extends to data too large to hold in memory.
Coding QuestionsIntuitCount Square Subgrids For Each Query
2/5A coding question on counting how many square sub-grids fit inside rectangular grids, answering several grid-size queries at once. It tests careful counting by side length and handling of degenerate sizes.
Coding QuestionsGoldman SachsCalculator with Parentheses
3/5Evaluating a string that mixes numbers, plus and minus signs, spaces and nested parentheses. The task checks how well you track signs across nested groups while scanning the input once.
Coding QuestionsDockerPrime Number of Set Bits in Binary Representation
2/5Count the numbers in a range whose binary form contains a prime quantity of one-bits. It tests careful reading of a definition, such as whether one counts as prime, and correct handling of inclusive bounds.
Coding QuestionsPalo Alto NetworksFind the Closest Palindrome
4/5A coding question on finding the nearest palindromic number to a given integer, excluding the number itself. It checks careful handling of digit mirroring, carries and borrows, numbers whose length changes, and tie-breaking by value.
Coding QuestionsRoblox
Studied alongside
Math interview FAQ
- How many Math interview questions are there?
- 200 reported questions, mostly Coding Questions.
- Which companies ask Math questions?
- Amazon (33), Capital One (7), Snowflake (7), Microsoft (5), Akuna Capital (5), Optiver (5), Uber (5), Google (4).
- How hard are Math questions?
- They average 2.7 out of 5: 5 at 1/5, 71 at 2/5, 110 at 3/5, 14 at 4/5.