Skip to content

Tag Archives: array-range-queries

Given a matrix mat[][] of size N*M, the task is to find the minimum value in a submatrix of the array, defined by the top-left… Read More
Given an array, arr[] of size n. Calculate the sum of arr[] by performing k queries on arr[], such that we have to add an… Read More
Given an array arr[] consisting of N  integers and an array Q[][3] consisting of M queries of the form [L, R, U], the task for… Read More
Given a matrix mat[][] of size N * M, and Q queries each of type {L, R} that denotes a range of row [L, R].… Read More
Given an array A[] of size N (0 ≤ A[i] ≤ 109). The following operations can be performed on the array. Choose a random integer… Read More
Given an array A[] containing N elements and an array queries containing Q queries of type [ X, L, R ] where X is the… Read More
 Given a string S of length N, Q ranges of the form [L, R] in a 2-D array range, and a permutation arr[] containing numbers… Read More
Given a 2-dimensional integer array arr[] representing N ranges, each of type [starti, endi] (starti, endi ≤ 109) and Q queries represented in array query[],… Read More
Given an array arr[] of length N, and an array queries[] of size Q, the task is to find the number of missing elements from… Read More
Given an array consisting of N positive integers, and Q queries where each query is one of the following types: 1 l r – Requires… Read More
Given an array arr[ ] which contains N positive integers and an integer K and a vector of queries Q . Two types of queries… Read More
Consider an integer sequence S, which is initially empty (i.e. S = {}). Also given are Q queries, each of which is one of the… Read More
Given array of integers arr[] and queries[] of size N and Q, the task is to find the largest index for each query Q[i] such… Read More
Given an array arr[] of size N, and Q queries of the form [A, B], the task is to find all the unique elements from… Read More

Start Your Coding Journey Now!