##
Queries on probability of even or odd number in given ranges
October 19, 2017

Given an array A of size N, containing integers. We have to answer Q queries where each query is of the form: K L R… Read More »

October 19, 2017

Given an array A of size N, containing integers. We have to answer Q queries where each query is of the form: K L R… Read More »

October 13, 2017

Given an array of n integers. You are given q queries. Write a program to print floor value of mean in range l to r… Read More »

October 11, 2017

Given an array of size ‘n’ and a given set of commands of size ‘m’. Every command consist of four integers q, l, r, k.… Read More »

September 24, 2017

An array consisting of N integers is given. There are several Right Circular Rotations of range[L..R] that we perform. After performing these rotations, we need… Read More »

September 23, 2017

Given an array arr of integers of size n. We need to compute sum of elements from index i to index j. The queries consisting… Read More »

September 22, 2017

Given an array of size n and a give set of commands of size m. The commands are enumerated from 1 to m. These commands… Read More »

September 5, 2017

Consider a binary array consisting of N elements (initially all elements are 0). After that you are given M commands where each command is of… Read More »

July 30, 2017

Given an array containing n integers and a value d. m queries are given. Each query has two values start and end. For each query,… Read More »

July 28, 2017

Given an array of N positive integers. There are Q queries, each include a range [L, R]. For each query output the xor of greatest… Read More »

July 12, 2017

Given an unsorted array of size n, find no of elements between two elements i and j (both inclusive). Examples: Input : arr = [1… Read More »

July 3, 2017

Given a binary array arr[], we to find the number represented by the subarray a[l..r]. There are multiple such queries. Examples: Input : arr[] =… Read More »

June 28, 2017

Given a array such that all its terms is either 0 or 1.You need to tell the number represented by a subarray a[l..r] is odd… Read More »

June 18, 2017

Given a array ‘a[]’ of size n and number of queries q. Each query can be represented by two integers l and r. Your task… Read More »

Given an array ‘a[]’ and number of queries q there will be two type of queries Query 0 update(i, v) : Two integers i and… Read More »

June 14, 2017

We have an array arr[0 . . . n-1]. There are two type of queries Find the XOR of elements from index l to r… Read More »