Frontend School
FAANG PrepQuestionsPricingSuccess StoriesCommunitySupport
FAANG PrepQuestionsPricingSuccess StoriesCommunitySupport
Frontend School

AI Frontend Interview Simulator for FAANG and product companies.

Support: admin@frontendschool.in

Resources

FAANG Prep GuideInterview QuestionsSuccess Stories

Practice

React Interview QuestionsJavaScript Interview QuestionsMachine Coding RoundFrontend System Design

Product

ProblemsLearnCompaniesTopicsBuy CreditsReferral Program
CommunityPrivacyTermsRefund PolicySupport
  1. Home
  2. Topics
  3. Math & Number Theory

DSA

Math & Number Theory Interview Questions for Frontend Engineers

18 data structures and algorithms questions, the kind asked in frontend coding rounds on math & number theory, ordered easy to hard. Solve each one in a live IDE and get rubric-based AI feedback.

18
Problems
6
Easy
10
Medium
2
Hard

Easy math & number theory problems (6)

easyDSA

Calculate Power (x^n)

MathRecursionDivide and Conquer
General
Solve this problem →
easyDSA

Check if a Number is Semi-Prime

MathNumber TheoryPrime Numbers
Microsoft
Solve this problem →
easyDSA

Count Square-Free Divisors

MathNumber TheoryDivisors
General
Solve this problem →
easyDSA

Divisor Sum Parity Check

MathNumber TheoryDivisors
LinkedIn
Solve this problem →
easyDSA

Recursive Sum of Digits

RecursionMathnumbers
Groww
Solve this problem →
easyDSA

Sum of Digits Recursive

RecursionMathematicsNumber Theory
Oracle
Solve this problem →

Medium math & number theory problems (10)

mediumDSA

Count Bi-Prime Numbers in Range

MathNumber TheorySieve
Amazon
Solve this problem →
mediumDSA

Count K-Prime Distinct Numbers in a Range

MathNumber TheorySieve
Google
Solve this problem →
mediumDSA

Count Numbers with K Distinct Prime Factors

MathNumber TheorySieve
Netflix
Solve this problem →
mediumDSA

Count Numbers with K Distinct Prime Factors

MathNumber TheoryAlgorithms
X (Twitter)
Solve this problem →
mediumDSA

Count Pinterest-Worthy Numbers

MathNumber TheorySieve
Pinterest
Solve this problem →
mediumDSA

Count Shiprocket-Prime Numbers

MathNumber TheorySieve
Shiprocket
Solve this problem →
mediumDSA

K-Prime Number Counter

MathNumber TheorySieve
Snap
Solve this problem →
mediumDSA

K-Smooth Factorial Numbers

MathNumber TheoryAlgorithms
Oracle
Solve this problem →
mediumDSA

Sum of Coprime Integers

MathNumber TheoryInclusion-Exclusion
General
Solve this problem →
mediumDSA

Sum of Exclusive Prime Multiples

MathNumber TheoryInclusion-Exclusion
Stripe
Solve this problem →

Hard math & number theory problems (2)

hardDSA

Count Numbers with Prime Factor Sum of Exponents

MathNumber TheoryRecursion
General
Solve this problem →
hardDSA

Stripe Batch ID Parity

MathNumber TheoryAlgorithms
Stripe
Solve this problem →

Companies that practice math & number theory

  • Oracle2
  • Stripe2
  • Microsoft1
  • LinkedIn1
  • Groww1
  • Amazon1
  • Google1
  • Netflix1
  • X (Twitter)1
  • Pinterest1
  • Shiprocket1
  • Snap1

Get good at math & number theory

Solve problems in a live IDE, get scored on a rubric, and see exactly what to improve.

Start Practicing FreeBrowse all problems