## Queries to find the last non-repeating character in the sub-string of a given string

Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »

- Find the Initial Array from given array after range sum queries
- XOR of all the elements in the given range [L, R]
- Two equal sum segment range queries
- Range Queries to Find number of sub-arrays with a given xor
- Count numbers in a range that are divisible by all array elements
- Count of quadruplets from range [L, R] having GCD equal to K
- Print matrix after applying increment operations in M ranges
- Queries for Composite numbers in subarray (With Point Updates)
- Sum of even values and update queries on an array
- Sum of all odd length palindromic numbers within the range [L, R]
- Queries to update a given index and find gcd in range
- Search an element in given N ranges
- Queries to return the absolute difference between L-th smallest number and the R-th smallest number
- Queries to find the last non-repeating character in the sub-string of a given string
- Maximum length palindrome that can be created with characters in range L and R
- Queries for bitwise AND in the index range [L, R] of the given array
- Count number of indices such that s[i] = s[i+1] : Range queries
- Maximize the summation of numbers in a maximum of K moves in range [L, R]
- Queries for bitwise OR in the index range [L, R] of the given array

Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »

Given an array arr[] of N and Q queries consisting of a range [L, R]. the task is to find the bit-wise AND of all… Read More »

Given an array arr[] of N and Q queries consisting of a range [L, R]. the task is to find the bit-wise OR of all… Read More »

Given an integer K and a range [L, R], the task is to count the quadruplet pairs from the given range having gcd equal to… Read More »

Given a string str and Q queries. Each query consists of two numbers L and R. The task is to find the maximum length palindrome… Read More »

Given an array arr[] of N integers and queries Q. Queries are of two types: Update a given index ind by X. Find the gcd… Read More »

Given an array arr[] of size n and q queries and an integer k. Each query consists of an index range [l, r] and the… Read More »

Given a range [L, R], the task is to find the XOR of all the integers in the given range i.e. (L) ^ (L +… Read More »

Given an array arr[] of N unique elements and Q queries. Every query consists of two integers L and R. The task is to print… Read More »

Given an array of N sorted ranges and a number K. The task is to find the index of the range in which K lies.… Read More »

Given an array arr[] of N integers and Q queries. Each query consists of 3 integers L, R and K. You can move from index… Read More »

Given an array arr[] consisting of N positive integers, and some queries consisting of a range [L, R], the task is to find whether the… Read More »

Given an array arr[] of integers and an array q[] of queries. For the ith query, index = q[i][0] and value = q[i][1]. The task… Read More »

Given an array arr[] which is the resultant array when a number of queries are performed on the original array. The queries are of the… Read More »

Given a 2-D matrix mat[][] of size N * N, initially all the elements of the matrix are 0. A number of queries(M ranges) need… Read More »