# Tag Archives: array-range-queries

Given an array A[] of size N. Solve Q queries. Find the product in the range [L, R] under modulo P ( P is Prime). … Read More
Given an array A[] of size N. Solve Q queries. Find the product in the range [L, R] under modulo P ( P is Prime). … Read More
Given an array A[] of size N. Solve Q queries. Find the product in the range [L, R] under modulo P ( P is Prime). … Read More
Given an array A[] of size N. Solve Q queries. Find the product in the range [L, R] under modulo P ( P is Prime). … Read More
Given N ranges of the form [L, R], the task is to find the sum of all integers that lie in any of the given… Read More
Given an array arr[] containing N integers and an array queries[] containing Q queries in the form of {L, R}, the task is to count… Read More
Given an array arr[] of N integers and M update queries of the type (L, R, X), the task is to find the maximum subarray… Read More
Given an array of integers, evaluate queries of the form LCM(l, r). There might be many queries, hence evaluate the queries efficiently.   LCM (l, r)… Read More
Given an array of integers, evaluate queries of the form LCM(l, r). There might be many queries, hence evaluate the queries efficiently.   LCM (l, r)… Read More
Given an array of integers, evaluate queries of the form LCM(l, r). There might be many queries, hence evaluate the queries efficiently.   LCM (l, r)… Read More
Given an array arr[] of N integers, find the length of the longest subarray having sum in the range [L, R]. Examples:   Input: arr[]… Read More
Given an array arr[] having N integers in non-decreasing order and an integer K, the task is to find the minimum value of (j –… Read More
Given two variables L and R, indicating a range of integers from L to R inclusive, and a number K, the task is to find… Read More
Given a string S, and two integers L and R. The task is to find the length of the substring in the given range such… Read More
Content has been removed on Author’s request. Recommended Solve DSA problems on GfG Practice. Solve Problems My Personal Notes arrow_drop_up Save