Skip to content

Category Archives: Mathematical

Given three integers L, R, and N, the task is to find the minimum possible value of (i * j) % N, where L ≤… Read More
Given a positive even integer N, the task is to find the number of pairs (i, j) from the range [1, N] such that the… Read More
Given two arrays arr[] and brr[] of size N and M integers respectively, the task is to maximize the sum of the product of the… Read More
Given a positive integer N, the task is to find the number of triplets of positive integers (X, Y, Z), whose product is at most… Read More
Given a positive integer N, the task is to find the number of positive integers whose GCD with the given integer N is the number… Read More
Given two integers A and R, representing the first term and the common ratio of a geometric sequence, the task is to find the sum… Read More
Given two integers A and B, representing the length of the semi-major and semi-minor axis of a Hyperbola of the equation (X2 / A2) –… Read More
Given an array arr[] consisting of N pairs, where each pair represents the value and ID respectively, the task is to check if it is… Read More
Given a positive integer N, the task is to find the number of relations that are irreflexive antisymmetric relations that can be formed over the… Read More
Given an integer N, the task is to count the number of integers from the range [1, N] having at least one in common prime… Read More
Given an array arr[] consisting of N positive integers representing the lengths of N ropes and a positive integer K, the task is to find… Read More
Given an array arr[] consisting of N positive integers, the task is to sort the array in increasing order with respect to the count of… Read More
Given an array arr[] consisting of N integers and an array Q[] of M pairs representing a query of type {X, Y}, the task is… Read More
Given an array arr[] consisting of N integers, the task is to minimize the cost of converting all array elements to a Fibonacci Number, where… Read More
Given a positive integer N, the task is to find the absolute difference of the count of odd and even factors of N. Examples: Input:… Read More