Math Interview Questions
432+ real questions from verified interview reports across 12 companies.
Sourced from 1Point3Acres, Blind, Glassdoor, Reddit, and more. Translated and cleaned.
Top Companies Asking Math Questions
Sample Math Questions
Bob is a studious boy. He is very interested in solving difficult mathematical problems in no time. By seeing his talent, Bob\'s teacher gave him a problem and asked him...
Question1: Given 3 integers m,n,r, find the smallest positive integer \'a\' such that (ma)%n = r. e.g. m = 5, n = 3, r = 1 -> (52)%3 = 1, answer...
Round 1(OA) - 2 leetcode hard medium(solved) 1 hard(13/15 testcases passed). Round 2(Interview)(didn't clear) - Q1 - You are given an integer array nums of size n and an integer x. Return the number o
Don't confuse this with TPP. Although it seems like a small company, they gave me an online assessment (OA) after I submitted. There were two questions: One was given a string, "12:35," and the output
**1st Round DSA Interview** **1. Water Jug Problem** Reference: LeetCode Question 365. **2. Maximum Elements Made Equal With k Updates** **Problem Statement:** Given an array `nums[]` and a value `k`,
LeetCode #2964: Number of Divisible Triplet Sums. Difficulty: Medium. Topics: Array, Hash Table. Asked at Visa in the last 6 months.
LeetCode #3649: Number of Perfect Pairs. Difficulty: Medium. Topics: Array, Math, Two Pointers, Sorting. Asked at Visa in the last 6 months.
#202 Happy Number
LeetCode #202: Happy Number. Difficulty: Easy. Topics: Hash Table, Math, Two Pointers. Asked at Visa in the last 6 months.
#258 Add Digits
LeetCode #258: Add Digits. Difficulty: Easy. Topics: Math, Simulation, Number Theory. Asked at Visa in the last 6 months.
#2544 Alternating Digit Sum
LeetCode #2544: Alternating Digit Sum. Difficulty: Easy. Topics: Math. Asked at Visa in the last 6 months.
#9 Palindrome Number
LeetCode #9: Palindrome Number. Difficulty: Easy. Topics: Math. Asked at Infosys in the last 6 months.
LeetCode #1819: Number of Different Subsequences GCDs. Difficulty: Hard. Topics: Array, Math, Counting, Number Theory. Asked at Infosys in the last 6 months.
LeetCode #3666: Minimum Operations to Equalize Binary String. Difficulty: Hard. Topics: Math, String, Breadth-First Search, Union-Find, Ordered Set. Asked at Infosys in the last 6 months.
#223 Rectangle Area
LeetCode #223: Rectangle Area. Difficulty: Medium. Topics: Math, Geometry. Asked at Tesla in the last 6 months.
#356 Line Reflection
LeetCode #356: Line Reflection. Difficulty: Medium. Topics: Array, Hash Table, Math. Asked at Yandex in the last 6 months.
#66 Plus One
LeetCode #66: Plus One. Difficulty: Easy. Topics: Array, Math. Asked at Intuit in the last 6 months.
#43 Multiply Strings
LeetCode #43: Multiply Strings. Difficulty: Medium. Topics: Math, String, Simulation. Asked at Two Sigma in the last 6 months.
LeetCode #2249: Count Lattice Points Inside a Circle. Difficulty: Medium. Topics: Array, Hash Table, Math, Geometry, Enumeration. Asked at Rubrik in the last 6 months.
#2235 Add Two Integers
LeetCode #2235: Add Two Integers. Difficulty: Easy. Topics: Math. Asked at Akamai in the last 6 months.
#593 Valid Square
LeetCode #593: Valid Square. Difficulty: Medium. Topics: Math, Geometry. Asked at Pure Storage in the last 6 months.
LeetCode #1404: Number of Steps to Reduce a Number in Binary Representation to One. Difficulty: Medium. Topics: String, Bit Manipulation, Simulation. Asked at General Motors in the last 6 months.
#598 Range Addition II
LeetCode #598: Range Addition II. Difficulty: Easy. Topics: Array, Math. Asked at IXL in the last 6 months.
#412 Fizz Buzz
LeetCode #412: Fizz Buzz. Difficulty: Easy. Topics: Math, String, Simulation. Asked at Mastercard in the last 6 months.
#12 Integer to Roman
LeetCode #12: Integer to Roman. Difficulty: Medium. Topics: Hash Table, Math, String. Asked at UiPath in the last 6 months.
#13 Roman to Integer
LeetCode #13: Roman to Integer. Difficulty: Easy. Topics: Hash Table, Math, String. Asked at Virtusa in the last 6 months.
See All 432 Math Questions
Full question text, interview context, and company-specific frequency data for subscribers.
Get Access