# Category Archives: Mathematical

Given two arrays arr[] and powr[] of size N and an integer K. Every element arr[i] has its respective power powr[i]. The task is to… Read More
Given an array arr[] with 4 integers. The task is to return the maximum 24 hour time that can be formed using the digits from… Read More
Given a binary array arr[] and an integer K, the task is to count the maximum number of 0’s that can be flipped to 1’s… Read More
Given three integers a, b and c which denotes the frequencies of three different characters ‘A‘, ‘B‘, and ‘C‘ respectively, and can be used to… Read More
Given an array arr[], the task is to print the indices that have the highest probability of holding the entire sum of the array after… Read More
Given an array, arr[] and two integers, K and X, the task is to maximize the sum of the array elements after at most K… Read More
Given an integer N, The task is to construct a matrix mat[][] of size M x M (‘M’ is the number of digits in the… Read More
Given an array, arr[] of N positive integers and M queries which consist of two integers [Li, Ri] where 1 ≤ Li ≤ Ri ≤ N.… Read More
Given an array arr[][] consisting of N triplets ( start, end, rainfall in cms), defining rain will fall from the start location to the end… Read More
Given an array, arr[] consisting of N integers representing coordinates on a number line and an integer S. Find the maximum size of jump required… Read More
Given an array arr[]. The task is to minimize the number of swaps required such that for each i in arr[], arr[i]%3 = i%3. If… Read More
Given three integers a, b, and N. The task is to find minimum addition operations between a and b, such that after applying the operations,… Read More
Given the area of a square inscribed in a circle as N, the task is to calculate the area of a circle in which the… Read More
Given a binary array arr1[] and an integer array arr2[], each of length N, the task is to rearrange the elements in the array arr2… Read More
Given a pyramid, formed using unit area cubes, of given height H. The pyramid is then placed on the ground and painted from outside. The… Read More