Top 50 DSA Coding Interview Numerical Questions and Patterns

Nihal Parmar
2 min readJun 3, 2023

1. List of important numerical questions-Data Structures and Algorithms (DSA):

  1. Find Prime Numbers in a Range
  2. Find Prime Numbers in a Range using the Sieve of Eratosthenes
  3. Examples of Inclusion and Exclusion in Number Theory Basics
  4. Find Numbers Divisible by A and B
  5. Find the Greatest Common Divisor (GCD) of Two Numbers
  6. Find the Least Common Divisor (LCD) of Two Numbers
  7. Armstrong Numbers
  8. Reverse Numbers
  9. Print All Digits of Positive Decimals
  10. Sum of First N Natural Numbers
  11. Check Pythagorean Triplets
  12. Check if a Number is a Power of Three or Not
  13. Conversion between Binary and Decimal Numbers
  14. Fibonacci Series Generation (Iterative and Recursive Approaches)
  15. Factorial of a Number (Iterative and Recursive Approaches)
  16. Calculate Power of N using a While Loop
  17. Square in an N x N Chessboard
  18. Factorial of Large Numbers
  19. Different Approaches to Find Prime Numbers in a Range
  20. Rectangles in an N x N Board
  21. Next Higher Palindromic Number using the Same Set of Digits
  22. Digit Multiplier
  23. Prime Number of Set Bits
  24. Rank the Permutations

Please note that these are just the topics or questions, and each question may have multiple variations and implementations.

Patterns to Solve Numerical Problems:

  1. Prime Number with For Loop
  2. Prime Number with Sieve of Eratosthenes using the Inclusion and Exclusion Principle
  3. Separating Digits to Decimal
  4. Binary to Decimal Conversion
  5. Recursive Printing of Series

Please note that these patterns represent the approaches to solving the respective numerical problems. Each pattern can be applied in various problem-specific implementations to achieve the desired results.

Follow me for new tidbits on the domain of tech.

Have a look at my Portfolio : https://nihalparmarportfolio.web.app/

--

--

Nihal Parmar

Software Engineer @Crest Data System|| 6⭐ @HackerRank || Tech-Enthusiast || GSSoC’21 || Full Stack Developer