Skip to content

Category Archives: Mathematical

Given an array, arr[], and the cost array cost[], the task is to find the minimum cost to make all the array elements equal by… Read More
Given an array arr[] having positive integers of size N, and a non-negative integer K, the task is to find the minimum number of division… Read More
Given an arr[] of positive integers and start[] and end[] arrays of length L, Which contains the start and end indexes of L number of… Read More
Given a string S of numbers of length N, the task is to find the minimum number of operations required to change a string into… Read More
Given a positive integer N, count the number of possible distinct rearrangements of the digits of N (in decimal representation), such that the resultant number… 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
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
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
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
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
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
Given two positive integers X and Y (1 ≤ Y ≤ 105), find the maximum positive multiple (say M) of X such that M is… Read More
Given two integers P and Q, the task is to check whether a pair (P, Q) is equal or not, and a pair is said… Read More
Given an integer arr[] of length N such that (Ai > 0) for all (1 ≤ i ≤ N) and an integer X. In one… Read More
Given two numbers N and K, and a pair A and B, the task is to multiply N by A or B as many times… Read More

Start Your Coding Journey Now!