## Total numbers with no repeated digits in a range

Given a range find total such numbers in the the given range such that they have no repeated digits. For example: 12 has no repeated… Read More »

Given a range find total such numbers in the the given range such that they have no repeated digits. For example: 12 has no repeated… Read More »

Given a string s and Q number of queries. Each query Q consists of l and r and a character c. Find frequency of character… Read More »

Consider an array A[] of integers and following two types of queries. update(l, r, x) : Adds x to all values from A[l] to A[r]… Read More »

Consider an arr[] which can be defined as: You are given Q queries of the form [l, r]. The task is to output the value… Read More »

Given two strings A and B, the problem is to find if string B will be a subsequence of of string A if we remove… Read More »

We have an array arr[]. We need to find the sum of all the elements in the range L and R where 0 <= L… Read More »

Let us consider the following problem to understand Segment Trees. We have an array arr[0 . . . n-1]. We should be able to 1… Read More »

Given an array A of N integers. There are three type of type of commands: 1 x : Right Circular Shift the array x times.… Read More »

We have briefly discussed sparse table in Range Minimum Query (Square Root Decomposition and Sparse Table) Sparse table concept is used for fast queries on… Read More »

Given an array A[] of size N. Solve Q queries. Find the product in range [L, R] under modulo P ( P is Prime). Examples:… Read More »

Given a range [L, R], we need to find the count of total numbers of prime numbers in the the range [L, R] where 0

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 »

This is Range query question in which we have been provided with and array of size N. Given are 3 types of queries and you… Read More »

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 »

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 »