# Tag Archives: array-range-queries

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
Given an array, arr[] of N integers and 2 integers L and R, the task is to return the largest integer K greater than 0… Read More
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range… Read More
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range… Read More
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range… Read More
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range… Read More
Given an array of n non-negative integers. The task is to find frequency of a particular element in the arbitrary range of array[]. The range… Read More