# 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