# Category Archives: Mathematical

Given a very large number N, [1 ≤ length of digit of N (n) ≤ 106], the task is to find some positive integer of… Read More
Given two integers N and K and a range [L, R], the task is to build an array whose elements are unique and in the… Read More
Given a number N, the task is to check whether N has 7 divisors or not. Examples: Input: 64Output: 1 Explanation: 1, 2, 4, 8, 16,… Read More
Given integers X, Y, and K, the task is to make X and Y equal in not more than K operations by applying the following… Read More
Given a string S consisting of lowercase English alphabets, of length N, the task is to find the total number of distinct strings that can… Read More
Given a 2D matrix of size N x M and Q queries where each query represents a coordinate (x, y) of the matrix, the task… Read More
Given two values X and K, the task is to minimize the number of jumps to reach X from 0 by jumping K positions or… Read More
Given an integer K and an array arr[] of N integers, the task is to find the maximum number that can be added or subtracted… Read More
Given an array A[] having N positive integers, the task is to find the minimum number of steps to build this array from an initial… Read More
Consider the set of irreducible fractions A = {n/d | n≤d and d ≤ 10000 and gcd(n, d) = 1}. You are given a member… Read More
Given an array arr[] of size N and integers L and R defining the given range, the task is to find the number of elements… Read More
Given an array (arr[]) of N integers, find a subsequence of 4 elements such that a[i] < a[j] < a[k] < a[l] and i <… Read More
Given two integers N and K and an array of N positive integers (i.e., a0, a1, a2…., an-1), the task is to find the minimum… Read More
Hadamard matrix is a square matrix with the unique property that any two of its rows are orthogonal. In geometric terms that means that the… Read More
Given integers N, M and p, the task is to find the probability of hitting a target for the Nth time at the Mth throw… Read More