## Sum of product of proper divisors of all Numbers lying in range [L, R]

Given an array arr[][] consisting of Q queries where every row consists of two numbers L and R which denotes the range [L, R]; the… Read More »

Given an array arr[][] consisting of Q queries where every row consists of two numbers L and R which denotes the range [L, R]; the… Read More »

Given Q queries in the form of 2D array arr[][] whose every row consists of two numbers L and R which denotes the range [L,… Read More »

Given Q queries in the form of 2D array arr[][] whose every row consists of two numbers L and R which signifies the range [L,… Read More »

Given an array arr[] of size N containing distinct numbers from 1 to N in any order, the task is to perform modified range sum… Read More »

Given three positive integers L, R and K.The task is to find the count of all the numbers from the range [L, R] that contains… Read More »

Given an array arr[] of N elements and a number of queries where each query will contain three integers L, R and K. For each… Read More »

Given an array of size N containing numbers only from 0 to 63, and you are asked Q queries regarding it. Queries are as follows:… Read More »

Consider an array A[] of integers and the following two types of queries. update(l, r, x): multiply x to all values from A[l] to A[r]… Read More »

Given Q queries and an integer K where each query consists of a range [L, R] and the task is to find the count of… Read More »

Given two integers L and R, the task is to find the minimum difference between any two prime numbers in the range [L, R]. Examples:… Read More »

Given a binary pattern patt and Q queries where each query consists of a range [L, R], for every query the task is to find… Read More »

Given Q queries where each query consists of an integer range [L, R], the task is to find the sum of the integers from the… Read More »

Given an array arr[], the task is to answer queries to find the maximum of all the elements in the index range arr[L…R]. Examples: Input:… Read More »

Given an array arr[] containing N integers and there are Q queries where each query consists of a range [L, R]. The task is to… Read More »

Given two very large numbers L and R where L ≤ R, the task is to compute the sum of all the natural numbers from… Read More »