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
Category Archives: Mathematical
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[][2] consisting of M queries of the form [L, R], the task for… Read More
Given a value N, the task is to find the number of ways a binary string of size N can be formed such that at… Read More
Given two integers L and R, the task is to find the value of (number of composites – number of primes) that lie in the… Read More
Given a 2D array arr[][] where each array element denotes a point in the X axis and the number of elements on that point. A… Read More
A relation is a subset of the cartesian product of a set with another set. A relation contains ordered pairs of elements of the set… Read More
There are N persons and N jobs. Given an array arr[] of size N*N where (arr[0], arr[1], . . ., arr[N-1]) denotes the time taken… Read More