Skip to content

Category Archives: Mathematical

Given two positive integers S and P, the task is to find the minimum possible size of the array such that the sum of elements… Read More
Given a binary string S having N characters and two integers K and Q, the task is to find the minimum number of remaining zeroes… Read More
Given a positive integer N representing the set of integers [1, N] and an array queries[] of length Q of type {L, K}, the task… Read More
Given an array arr[] and two positive integers K and C, the task is to maximize the Kth maximum element obtained after splitting an array… Read More
Given the integers N, K and an infinite sequence of natural numbers where all the numbers containing the digit K (1<=K<=9) are removed. The task… Read More
Given N program codes and their respective debugging times in an array codeTime and an integer WorkingSessionTime, the ith program takes codeTime[i] hours to finish.… Read More
Given sorted float array arr[]. Check if arr[] can be rearranged such that its mean is equal to its median. Examples: Input: arr[] = {1.0,… Read More
Given a binary string S, the task is to find the sum of the shortest distance between all 0s to 1 in the given string… Read More
Given two Geometric Progressions (a1, r1) and (a2, r2) where (x, y) represents GP with initial term x  and common ratio y and an integer… Read More
Given an array of pairs arr[][] of length N, and an array queries[] of length M, and an integer R, where queries[i] contain an integer… Read More
Given a Matrix grid[][] of size NxM where N is number of rows and M is number of columns. The task is to form a… Read More
Given an array arr[], the task is to perform arithmetic operations (+, -, *, /) on arr[] in sequence. These operations are performed on adjacent… Read More
Given three integers A, B, and C, the task is to find the minimum possible value of |A – X| + |B – Y| +… Read More
Given a binary string S of size N, the task is to check if the count of 1s can be made greater than the count… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the minimum of operations required to make all… Read More