Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Misc
8.8K+ articles
Mathematical
7.8K+ articles
Arrays
6.5K+ articles
Competitive Programming
3.3K+ articles
Strings
3.3K+ articles
Greedy
2.1K+ articles
Algorithms
2.0K+ articles
Sorting
1.8K+ articles
Searching
1.7K+ articles
DSA
/
Algorithms
/
Mathematical
Mathematical
7.8K+ posts
Recent Articles
Popular Articles
Steady-state probabilities in Markov Chains
Last Updated: 29 April 2025
A Markov chain is a statistical model that explains how a system transitions from one state to another, with the next state depending only on the present state and not on ...
read more
Mathematical
Picked
DSA
Statistics
AI-ML-DS
Data Science
Top Logic Building Problems for Interviews
Last Updated: 13 April 2025
Logic building problems are fundamental to developing strong problem-solving skills and mastering algorithms. These problems often require a deep understanding of patterns...
read more
Mathematical
DSA
Product of Two Numbers
Last Updated: 17 March 2025
Given two numbers, a and b. Return the product of both the numbers.Examples:Input: a = 4, b = 5Output: 20Input: a = 3, b = 5Output: 15Table of Content[Expected Approach] U...
read more
Mathematical
DSA
Nth term of AP from First Two Terms
Last Updated: 03 April 2025
Given two integers a1 and a2, the first and second terms of an Arithmetic Series respectively, the problem is to find the nthterm of the series.Examples :Input : a1 = 2, ...
read more
Mathematical
arithmetic progression
Arithmetic Progressions
DSA
Swap Two Numbers
Last Updated: 24 February 2025
Given two numbers a and b, the task is to swap them.Examples: Input: a = 2, b = 3Output: a = 3, b = 2Input: a = 20, b = 0Output: a = 0, b = 20Input: a = 10, b = 10Output: ...
read more
Bit Magic
Mathematical
DSA
Factorial Coding Problems
Last Updated: 13 December 2024
Factorialof a number n is defined as the product of all the positive numbers less than n. In other words, Factorial of a number n can be calculated as: n × (n – 1) × (n – ...
read more
Mathematical
factorial
DSA
Mathematical Algorithms (Difficulty Wise)
Last Updated: 12 February 2025
The following is the list of mathematical concepts and related coding problems. The coding problems are ordered according to difficulty level. Please refer Mathematical Al...
read more
Algorithms
Mathematical
DSA
Prime Number Coding Problems
Last Updated: 21 November 2024
Prime Numbers are natural numbers greater than 1 and can be divided by itself and 1 only. For instance, numbers 2, 3, 5, 7, and 11 are the prime numbers since they ca...
read more
Mathematical
prime-factor
Prime Number
DSA
Tips and Tricks to Find GCD
Last Updated: 14 October 2024
Let us first discuss the standard method to find GCD of two numbers a and b.Step 1: List all the divisors of the number ‘a’.Step 2: List all the divisors of the number ‘b’...
read more
Mathematical
GCD-LCM
School Learning
DSA
Prime Factorization Tips and Tricks
Last Updated: 15 October 2024
Let us first go through the standard Prime Factorization by Division Method. Then we will be talking about tips and tricks to make it faster.Step 1: Divide the number by t...
read more
Mathematical
prime-factor
School Learning
DSA
Interesting Facts about Prime Factorization
Last Updated: 03 December 2024
1. Every integer greater than 1 can be uniquely factored into prime numbers. This is known as the Fundamental Theorem of Arithmetic. For example, 60 can be written as 22×3...
read more
Mathematical
Mathematics
School Learning
Perfect Square Interesting Facts
Last Updated: 21 October 2024
Here are some interesting facts about Perfect Squares or Square Numbers.If the original number is even, the perfect square will also be even. Similarly, if the number is o...
read more
Mathematical
Engineering Mathematics
maths-perfect-square
Mathematics
School Learning
DSA
Climbing Stairs - Count ways to reach Nth stair (Order does not matter)
Last Updated: 05 October 2024
There arenstairs, and a person standing at the bottom wants to reach the top. The person can climb either1 stair or 2 stairs at a time. Count the number of ways, the perso...
read more
Dynamic Programming
Mathematical
DSA
Check for Prime Number
Last Updated: 11 March 2025
In this problem, you are given a number n and you have to check whether it is a Prime number or not.Input: n = 10Output: falseExplanation: 10 is divisible by 2 and 5 Inpu...
read more
Mathematical
Prime Number
number-theory
DSA
Water Jug Problem -Complete Tutorial
Last Updated: 09 September 2024
You are given a m liter jug and a n liter jug where 0 m n. Both the jugs are initially empty. The jugs don’t have markings to allow measuring smaller quantities. You hav...
read more
Algorithms
Mathematical
GCD-LCM
Puzzles
DSA
1
2
3
4
...
517
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !