# Tag Archives: array-range-queries

Given an array of pairs arr[][] of length N, and an array queries[] of length M, and an integer R, where each query contains an… Read More
Given a range [L, R], the task is to find the count of numbers in the range [L, R] that can be expressed as a… Read More
Given an array arr[] of size N and Q queries of the form (L, R), the task is to count number of triplets with even… Read More
Given an array arr[] of N integers, an integer K, and Q queries of the type as explained below: (1, L, R): If the query… Read More
Given an array arr[] consisting of N positive integers and an array of queries Q[] of type [L, R], the task is to find the… Read More
Given an array arr[] consisting of N integers and an array query[] consisting of queries of the form {L, R}, the task for each query… Read More
Given N ranges of the form L to R, the task is to find the maximum occurred integer in all the ranges. If more than… Read More
Given an array A[] consisting of N integers and Q queries of the below types, the task is to print the output for all the… Read More
Given an array arr[] of N integers, and an array Q[] of M pairs, where a pair represents a query of the form {L, R},… Read More
Given two arrays A[] of size N and B[] of size M and an integer K, the task is to select at most one element… Read More
Given an array arr[](1-based indexing) consisting of N positive integers and two positive integers L and R,  the task is to find the sum of… Read More
Given an array A[] consisting of N integers and Q queries, say Query[][] of the form {L, R, a, d} such that each query represents… Read More
Given a binary string S of size N, and a 2D array Q[][] of queries consisting of M pairs of the form {L, R}, the… Read More
Given an array Intervals[] consisting of N pairs of integers where each pair is denoting the value range [L, R]. Also, given an integer array… Read More
Given a positive integer N and a sorted array arr[] consisting of M integers, the task is to find the minimum absolute value of (K… Read More