Given an array arr[] of size N, the task is to maximize the count of distinct array elements by repeatedly inserting absolute difference between all… Read More

# Category Archives: Mathematical

Given two integers Y and B representing two years, the task is to find the day of the week in which 1st January of the… Read More

Given an array arr[] consisting of N positive integers, the task is to find the maximum possible difference between the sum of even and odd-indexed… Read More

Given two integers r1 and r2, representing the radius of two circles, the task is to find the radius of the circle having area equal… Read More

Given an array arr[] of size N, the task is to construct an array brr[] of size N that satisfies the following conditions: In every… Read More

Given a string R(x) of length n representing an expression having the set of words under the given grammar: For every lowercase letter x, R(x)… Read More

Given an integer pixel representing the width of a box in pixels, the task is to convert pixel into their equivalent value measured in rem… Read More

Given two integers L and R, the task is to find the count of numbers in the range [L, R] having prime digits at prime… Read More

Given three arrays A[], B[] and C[] of size N and three positive integers X, Y, and Z, the task is to find the maximum… Read More

Given a positive integer N, the task is to find the permutation of first N natural numbers such that the product of Bitwise AND(&) of… Read More

Given a circular array arr[] of size N and an index K, the task is to reverse all elements of the circular array starting from… Read More

Given a matrix B[][] of dimensions N * M, the task is to generate a matrix A[][] of same dimensions that can be formed such… Read More

Given an array arr[] consisting of N 0s and an array Q[][] with each row of the form (L, R)., the task for each query… Read More

Given two integers X and Y, the task is to make both the integers equal by performing the following operations any number of times: Increase… Read More