# Math DSA Problems

> 564 Math coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/math
Last updated: 2026-11-28

564 math problems for coding interviews and campus placements, with hints and company tags. Below are the first 100 of 564: 100 easy, 0 medium and 0 hard. Practise them free on InternHack and track what you have solved.

## Math problems, easiest first

1. [Count Symmetric Integers](https://www.internhack.in/learn/dsa/problem/count-symmetric-integers) (Easy)
2. [A Number After a Double Reversal](https://www.internhack.in/learn/dsa/problem/a-number-after-a-double-reversal) (Easy)
3. [Add Binary](https://www.internhack.in/learn/dsa/problem/add-binary) (Easy)
4. [Add Digits](https://www.internhack.in/learn/dsa/problem/add-digits) (Easy)
5. [Add Strings](https://www.internhack.in/learn/dsa/problem/add-strings) (Easy)
6. [Add to Array-Form of Integer](https://www.internhack.in/learn/dsa/problem/add-to-array-form-of-integer) (Easy)
7. [Add Two Integers](https://www.internhack.in/learn/dsa/problem/add-two-integers) (Easy)
8. [Alternating Digit Sum](https://www.internhack.in/learn/dsa/problem/alternating-digit-sum) (Easy)
9. [Armstrong Number](https://www.internhack.in/learn/dsa/problem/armstrong-number) (Easy)
10. [Arranging Coins](https://www.internhack.in/learn/dsa/problem/arranging-coins) (Easy)
11. [Average Value of Even Numbers That Are Divisible by Three](https://www.internhack.in/learn/dsa/problem/average-value-of-even-numbers-that-are-divisible-by-three) (Easy)
12. [Base 7](https://www.internhack.in/learn/dsa/problem/base-7) (Easy)
13. [Calculate Delayed Arrival Time](https://www.internhack.in/learn/dsa/problem/calculate-delayed-arrival-time) (Easy)
14. [Calculate Money in Leetcode Bank](https://www.internhack.in/learn/dsa/problem/calculate-money-in-leetcode-bank) (Easy)
15. [Categorize Box According to Criteria](https://www.internhack.in/learn/dsa/problem/categorize-box-according-to-criteria) (Easy)
16. [Cells with Odd Values in a Matrix](https://www.internhack.in/learn/dsa/problem/cells-with-odd-values-in-a-matrix) (Easy)
17. [Check If Digits Are Equal in String After Operations I](https://www.internhack.in/learn/dsa/problem/check-if-digits-are-equal-in-string-after-operations-i) (Easy)
18. [Check If It Is a Straight Line](https://www.internhack.in/learn/dsa/problem/check-if-it-is-a-straight-line) (Easy)
19. [Check if Two Chessboard Squares Have the Same Color](https://www.internhack.in/learn/dsa/problem/check-if-two-chessboard-squares-have-the-same-color) (Easy)
20. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
21. [Compute Decimal Representation](https://www.internhack.in/learn/dsa/problem/compute-decimal-representation) (Easy)
22. [Confusing Number](https://www.internhack.in/learn/dsa/problem/confusing-number) (Easy)
23. [Construct the Rectangle](https://www.internhack.in/learn/dsa/problem/construct-the-rectangle) (Easy)
24. [Convert a Number to Hexadecimal](https://www.internhack.in/learn/dsa/problem/convert-a-number-to-hexadecimal) (Easy)
25. [Convert Binary Number in a Linked List to Integer](https://www.internhack.in/learn/dsa/problem/convert-binary-number-in-a-linked-list-to-integer) (Easy)
26. [Convert Date to Binary](https://www.internhack.in/learn/dsa/problem/convert-date-to-binary) (Easy)
27. [Convert Integer to the Sum of Two No-Zero Integers](https://www.internhack.in/learn/dsa/problem/convert-integer-to-the-sum-of-two-no-zero-integers) (Easy)
28. [Convert the Temperature](https://www.internhack.in/learn/dsa/problem/convert-the-temperature) (Easy)
29. [Count Distinct Numbers on Board](https://www.internhack.in/learn/dsa/problem/count-distinct-numbers-on-board) (Easy)
30. [Count Integers With Even Digit Sum](https://www.internhack.in/learn/dsa/problem/count-integers-with-even-digit-sum) (Easy)
31. [Count Largest Group](https://www.internhack.in/learn/dsa/problem/count-largest-group) (Easy)
32. [Count Numbers With Unique Digits II](https://www.internhack.in/learn/dsa/problem/count-numbers-with-unique-digits-ii) (Easy)
33. [Count Odd Numbers in an Interval Range](https://www.internhack.in/learn/dsa/problem/count-odd-numbers-in-an-interval-range) (Easy)
34. [Count of Matches in Tournament](https://www.internhack.in/learn/dsa/problem/count-of-matches-in-tournament) (Easy)
35. [Count Operations to Obtain Zero](https://www.internhack.in/learn/dsa/problem/count-operations-to-obtain-zero) (Easy)
36. [Count Partitions with Even Sum Difference](https://www.internhack.in/learn/dsa/problem/count-partitions-with-even-sum-difference) (Easy)
37. [Count Square Sum Triples](https://www.internhack.in/learn/dsa/problem/count-square-sum-triples) (Easy)
38. [Count Substrings with Only One Distinct Letter](https://www.internhack.in/learn/dsa/problem/count-substrings-with-only-one-distinct-letter) (Easy)
39. [Count the Digits That Divide a Number](https://www.internhack.in/learn/dsa/problem/count-the-digits-that-divide-a-number) (Easy)
40. [Day of the Week](https://www.internhack.in/learn/dsa/problem/day-of-the-week) (Easy)
41. [Day of the Year](https://www.internhack.in/learn/dsa/problem/day-of-the-year) (Easy)
42. [Determine Color of a Chessboard Square](https://www.internhack.in/learn/dsa/problem/determine-color-of-a-chessboard-square) (Easy)
43. [Difference Between Element Sum and Digit Sum of an Array](https://www.internhack.in/learn/dsa/problem/difference-between-element-sum-and-digit-sum-of-an-array) (Easy)
44. [Distribute Candies Among Children I](https://www.internhack.in/learn/dsa/problem/distribute-candies-among-children-i) (Easy)
45. [Distribute Candies to People](https://www.internhack.in/learn/dsa/problem/distribute-candies-to-people) (Easy)
46. [Distribute Money to Maximum Children](https://www.internhack.in/learn/dsa/problem/distribute-money-to-maximum-children) (Easy)
47. [Divisible and Non-divisible Sums Difference](https://www.internhack.in/learn/dsa/problem/divisible-and-non-divisible-sums-difference) (Easy)
48. [Divisor Game](https://www.internhack.in/learn/dsa/problem/divisor-game) (Easy)
49. [Excel Sheet Column Number](https://www.internhack.in/learn/dsa/problem/excel-sheet-column-number) (Easy)
50. [Excel Sheet Column Title](https://www.internhack.in/learn/dsa/problem/excel-sheet-column-title) (Easy)
51. [Fibonacci Number](https://www.internhack.in/learn/dsa/problem/fibonacci-number) (Easy)
52. [Final Array State After K Multiplication Operations I](https://www.internhack.in/learn/dsa/problem/final-array-state-after-k-multiplication-operations-i) (Easy)
53. [Find Closest Person](https://www.internhack.in/learn/dsa/problem/find-closest-person) (Easy)
54. [Find Greatest Common Divisor of Array](https://www.internhack.in/learn/dsa/problem/find-greatest-common-divisor-of-array) (Easy)
55. [Find Minimum Operations to Make All Elements Divisible by Three](https://www.internhack.in/learn/dsa/problem/find-minimum-operations-to-make-all-elements-divisible-by-three) (Easy)
56. [Find Missing and Repeated Values](https://www.internhack.in/learn/dsa/problem/find-missing-and-repeated-values) (Easy)
57. [Find N Unique Integers Sum up to Zero](https://www.internhack.in/learn/dsa/problem/find-n-unique-integers-sum-up-to-zero) (Easy)
58. [Find Numbers with Even Number of Digits](https://www.internhack.in/learn/dsa/problem/find-numbers-with-even-number-of-digits) (Easy)
59. [Find the Child Who Has the Ball After K Seconds](https://www.internhack.in/learn/dsa/problem/find-the-child-who-has-the-ball-after-k-seconds) (Easy)
60. [Find the K-Beauty of a Number](https://www.internhack.in/learn/dsa/problem/find-the-k-beauty-of-a-number) (Easy)
61. [Find the K-th Character in String Game I](https://www.internhack.in/learn/dsa/problem/find-the-k-th-character-in-string-game-i) (Easy)
62. [Find the Key of the Numbers](https://www.internhack.in/learn/dsa/problem/find-the-key-of-the-numbers) (Easy)
63. [Find The Least Frequent Digit](https://www.internhack.in/learn/dsa/problem/find-the-least-frequent-digit) (Easy)
64. [Find the Maximum Achievable Number](https://www.internhack.in/learn/dsa/problem/find-the-maximum-achievable-number) (Easy)
65. [Find the Pivot Integer](https://www.internhack.in/learn/dsa/problem/find-the-pivot-integer) (Easy)
66. [Find the Sum of Encrypted Integers](https://www.internhack.in/learn/dsa/problem/find-the-sum-of-encrypted-integers) (Easy)
67. [Find the Winning Player in Coin Game](https://www.internhack.in/learn/dsa/problem/find-the-winning-player-in-coin-game) (Easy)
68. [Fizz Buzz](https://www.internhack.in/learn/dsa/problem/fizz-buzz) (Easy)
69. [GCD of Odd and Even Sums](https://www.internhack.in/learn/dsa/problem/gcd-of-odd-and-even-sums) (Easy)
70. [Greatest Common Divisor of Strings](https://www.internhack.in/learn/dsa/problem/greatest-common-divisor-of-strings) (Easy)
71. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
72. [Harshad Number](https://www.internhack.in/learn/dsa/problem/harshad-number) (Easy)
73. [Hexadecimal and Hexatrigesimal Conversion](https://www.internhack.in/learn/dsa/problem/hexadecimal-and-hexatrigesimal-conversion) (Easy)
74. [Hexspeak](https://www.internhack.in/learn/dsa/problem/hexspeak) (Easy)
75. [Largest Odd Number in String](https://www.internhack.in/learn/dsa/problem/largest-odd-number-in-string) (Easy)
76. [Largest Perimeter Triangle](https://www.internhack.in/learn/dsa/problem/largest-perimeter-triangle) (Easy)
77. [Largest Triangle Area](https://www.internhack.in/learn/dsa/problem/largest-triangle-area) (Easy)
78. [Matrix Cells in Distance Order](https://www.internhack.in/learn/dsa/problem/matrix-cells-in-distance-order) (Easy)
79. [Matrix Similarity After Cyclic Shifts](https://www.internhack.in/learn/dsa/problem/matrix-similarity-after-cyclic-shifts) (Easy)
80. [Maximum 69 Number](https://www.internhack.in/learn/dsa/problem/maximum-69-number) (Easy)
81. [Maximum Containers on a Ship](https://www.internhack.in/learn/dsa/problem/maximum-containers-on-a-ship) (Easy)
82. [Maximum Difference by Remapping a Digit](https://www.internhack.in/learn/dsa/problem/maximum-difference-by-remapping-a-digit) (Easy)
83. [Maximum Number of Balls in a Box](https://www.internhack.in/learn/dsa/problem/maximum-number-of-balls-in-a-box) (Easy)
84. [Maximum Odd Binary Number](https://www.internhack.in/learn/dsa/problem/maximum-odd-binary-number) (Easy)
85. [Maximum Product of Three Numbers](https://www.internhack.in/learn/dsa/problem/maximum-product-of-three-numbers) (Easy)
86. [Maximum Product of Two Digits](https://www.internhack.in/learn/dsa/problem/maximum-product-of-two-digits) (Easy)
87. [Maximum Subarray With Equal Products](https://www.internhack.in/learn/dsa/problem/maximum-subarray-with-equal-products) (Easy)
88. [Minimum Cost to Move Chips to The Same Position](https://www.internhack.in/learn/dsa/problem/minimum-cost-to-move-chips-to-the-same-position) (Easy)
89. [Minimum Cuts to Divide a Circle](https://www.internhack.in/learn/dsa/problem/minimum-cuts-to-divide-a-circle) (Easy)
90. [Minimum Moves to Equal Array Elements III](https://www.internhack.in/learn/dsa/problem/minimum-moves-to-equal-array-elements-iii) (Easy)
91. [Minimum Number of Pushes to Type Word I](https://www.internhack.in/learn/dsa/problem/minimum-number-of-pushes-to-type-word-i) (Easy)
92. [Minimum Operations to Make Array Sum Divisible by K](https://www.internhack.in/learn/dsa/problem/minimum-operations-to-make-array-sum-divisible-by-k) (Easy)
93. [Minimum Sum of Four Digit Number After Splitting Digits](https://www.internhack.in/learn/dsa/problem/minimum-sum-of-four-digit-number-after-splitting-digits) (Easy)
94. [Minimum Time Visiting All Points](https://www.internhack.in/learn/dsa/problem/minimum-time-visiting-all-points) (Easy)
95. [Missing Number](https://www.internhack.in/learn/dsa/problem/missing-number) (Easy)
96. [Missing Number In Arithmetic Progression](https://www.internhack.in/learn/dsa/problem/missing-number-in-arithmetic-progression) (Easy)
97. [N-th Tribonacci Number](https://www.internhack.in/learn/dsa/problem/n-th-tribonacci-number) (Easy)
98. [Nim Game](https://www.internhack.in/learn/dsa/problem/nim-game) (Easy)
99. [Number of Common Factors](https://www.internhack.in/learn/dsa/problem/number-of-common-factors) (Easy)
100. [Number of Days Between Two Dates](https://www.internhack.in/learn/dsa/problem/number-of-days-between-two-dates) (Easy)

## Companies that ask math problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 71 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 68 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 49 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 47 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 47 of these problems
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs): 13 of these problems
- [Apple](https://www.internhack.in/learn/dsa/companies/apple): 8 of these problems
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe): 8 of these problems
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho): 8 of these problems
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle): 8 of these problems
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture): 8 of these problems
- [Visa](https://www.internhack.in/learn/dsa/companies/visa): 6 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)
- [Stack](https://www.internhack.in/learn/dsa/stack) (167)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
