Skip to content

Tag Archives: Maths

Given an integer X, the task is to find the possible values of Q for the pair (Q, R) such that their product is equal… Read More
Given an integer N representing the size of the matrix, the task is to construct a square matrix N * N which have an element… Read More
Given a Unix Timestamp T (in seconds) for a given point in time, the task is to convert it to human-readable format (DD/MM/YYYY HH:MM:SS) Example:… Read More
Given an array arr[] of Prime Numbers and a number M, the task is to count the number of elements in the range [1, M]… Read More
Given a natural number N, the task is to find a number M smaller than N such that the difference between their bitwise XOR (N… Read More
Given two integers N and K, the task is to find the total count of N-digit number such that the sum of every K consecutive… Read More
Given an integer N, the task is to find the number of factors of N which are a perfect square. Examples:   Input: N = 100 Output:… Read More
Given four integers N, A, K, n where N represents the number of sides the polygon, A represents the initial angle of the polygon, K… Read More
Given one of the Sides S, Diagonal D, or Perimeter P of the square, the task is to find the area of the square with… Read More
Given a list of N distinct integers and a list of N-1 inequality signs, the task is to insert the integers between the inequality signs,… Read More
A number can always be represented as a sum of squares of other numbers. Note that 1 is a square, and we can always break… Read More
Given a number N and two arrays arr1[] and arr2[] of length 4. The array arr1[] denotes the denomination of 1, 5, 10, and 20… Read More
Given a number N and two integers A and B, the task is to check if it is possible to convert the number to 1… Read More
Given two integers N and K, the task is to find the maximum number of inversion in a sequence of first N natural numbers after… Read More
Given three integers N, L, and R. The task is to calculate the number of natural numbers in the range [L, R] (both inclusive) which… Read More