Skip to content

Category Archives: Mathematical

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
Given an array arr[] of 1s and -1s, the task is to partition the array into maximum subarrays such that the sum of the alternating… Read More
Given a binary string str, the task is to find the maximum possible OR value of any two substrings of the binary string str. Examples:… Read More
 Given an integer N, the task is to find a minimum possible Y that satisfies the following condition: Y > N. Y is not divisible… Read More

Start Your Coding Journey Now!