Skip to content

Category Archives: Mathematical

Given four integers X, Y, A, and B. X and Y denotes the rows and the columns of a matrix such that (X, Y ≥… Read More
Given three integers A, B, and C, the task is to find out a positive integer K (if exists) such that if k is multiplied… Read More
Given an integer, N, the task is to find the maximum LCM (Least Common Multiple) that can be obtained from four numbers less than or… Read More
Given two arrays A[] and B[] of length N along with an integer X. Initially all the elements of A[] are equal to zero, the… Read More
Given a number N, the task is to print the first N prime numbers. Examples:  Input: N = 4Output: 2, 3, 5, 7 Input: N… Read More
Given a number N, the task is to check if the number is a prime number or not. Check if given number N is Prime… Read More
Given a 2D Graph, present initially at (0, 0). Print “YES” if the given point (X, Y) lies on the spiral path, otherwise “NO“. The… Read More
Given Five integers A, B, C, D and E. the task is to find five non-intersecting ranges [X1, Y1], [X2, Y2], [X3, Y3], [X4, Y4],… Read More
What is the Determinant of a Matrix? The determinant of a Matrix is a special number that is defined only for square matrices (matrices that have… Read More
Given two sorted arrays, the task is to merge them in a sorted manner.Examples:  Input: arr1[] = { 1, 3, 4, 5}, arr2[] = {2,… Read More
Method 1 (Using Nested Loops):We can calculate power by using repeated addition. For example to calculate 5^6. 1) First 5 times add 5, we get 25. (5^2) 2)… Read More
Given a natural number n, print all distinct divisors of it. Examples: Input : n = 10 Output: 1 2 5 10 Input: n =… Read More
Given two parallel lines of length N and an array containing total N endpoints in array EndPoints[]. Given that there is a straight line from… Read More
Gaussian Distribution The Gaussian distribution is a continuous probability distribution that is commonly used to represent real-valued random variables. It is also known as the… Read More
Given a 2D matrix, the task is to find Trace and Normal of matrix.Normal of a matrix is defined as square root of sum of… Read More

Start Your Coding Journey Now!