# Category Archives: Mathematical

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
Given two binary strings, return their sum (also a binary string).Example: Input: a = "11", b = "1" Output: "100" We strongly recommend you to… Read More
Given two matrices, the task to multiply them. Matrices can either be square or rectangular. Examples:  Input : mat1[][] = {{1, 2}, {3, 4}} mat2[][]… Read More
Given an array arr[] of size N, where each value represents the number of elements present of the ith type, the task is to find… Read More
Given an array arr[] of positive integers of size N, the task is to find the minimum possible size of the array that can be… Read More
Given a string S of length N, the task is to check whether it is possible to partition the string S into two disjoint non-empty… Read More
Given two arrays X[] and Y[] of length N along with Q queries each of type [L, R] that denotes the subarray of X[] from… Read More
Given two integers L and R. Then the task is to output the count of integers X, such that L ≤ X2 ≤ R and… Read More
Find the sum of all the numbers between the range l and r. Here each number is represented by the sum of its distinct prime… Read More
Given integer N and values P and Q, The task is to calculate the minimum number of powers of P and Q required to generate… Read More
Given two integers N and M which denotes a matrix of size N*M that has the value of each cell as the sum of its… Read More
Given two integers N and M that denotes the number of rows and columns of a matrix that is initially empty, the task is to… Read More
Given an array arr[] consisting of N distinct integers and an array Q[] consisting of M queries of the form [L, R], the task for… Read More