# Category Archives: Mathematical

Given a positive number N, and a digit X, the task is to find the largest possible number by deleting one occurrence of X from… Read More
Given an integer N, the task is to find the minimum number of divisions required to reduce the number to 1 when the divisions follow… Read More
Given integer N and K, denoting the number of teams participating in a football tournament where each team plays only one match with each other… Read More
Given two arrays A[] and B[] (B[i] < A[i]) of size N each and an integer K, the task is to perform the operation of… Read More
For a given matrix before[][], the corresponding cell (x, y) of the after[][] matrix is calculated as follows:  res = 0;for(i = 0; i <=… Read More
Prerequisite: What is Z-transform?  A z-Transform is important for analyzing discrete signals and systems. In this article, we will see the properties of z-Transforms. These… Read More
Given an integer M and a sorted integer array arr[] of length N containing 1 and N-1 prime numbers, each appearing just once, the task… Read More
Given an array arr[] of size N, the task is to calculate the minimum number of elements to be removed from the array such that… Read More
Given an integer array having N elements ranging from 1 to N and each element appearing exactly once. The task is to find the number… Read More
Given an array arr[] of size N and three integers X, Y and K, the task is to count the number of pairs (i, j)… Read More
Given an array arr[] of positive integers of size N, the task is to divide the array into two non-empty subsets X and Y in… Read More
Given two integers N and X, the task is to find an output array arr[] containing distinct integers of length N such that their average… Read More
Find the number of leaf nodes in a perfect N-ary tree of height K. Note: As the answer can be very large, return the answer… Read More
Given two integers N and X, the task is to convert 1 to N using minimum operations of any of the following operations: Change a… Read More
Given an integer N, the task is to find two pairs of positive integers such that the GCD of the first pair is the same… Read More