Array | Range Queries
Recent Articles on Range Queries
- MO’s Algorithm
- Sqrt (or Square Root) Decomposition Technique | Set 1 (Introduction)
- Sparse Table
- Range sum query using Sparse Table
- Range Minimum Query (Square Root Decomposition and Sparse Table)
- Range Queries for Frequencies of array elements
- Constant time range add operation on an array
- Range LCM Queries
- GCDs of given index ranges in an array
- Queries for GCD of all numbers of an array except elements in a given range
- Number of elements less than or equal to a given number in a given subarray
- Number of elements less than or equal to a given number in a given subarray | Set 2 (Including Updates)
- Queries for counts of array elements with values in given range
- Queries for decimal values of subarrays of a binary array
- Count elements which divide all numbers in range L-R
- Number whose sum of XOR with given array range is maximum
- XOR of numbers that appeared even number of times in given Range
- Array range queries over range queries
- Array range queries for searching an element
- Array range queries for elements with frequency same as value
- Maximum Occurrence in a Given Range
- Number of indexes with equal elements in given range
- Merge Sort Tree for Range Order Statistics
- Total numbers with no repeated digits in a range
- Difference Array | Range update query in O(1)
- Range Query on array whose each element is XOR of index value and previous element
- Find whether a subarray is in form of a mountain or not
- Range sum queries without updates
- Number of primes in a subarray (with updates)
- Check in binary array the number represented by a subarray is odd or even
- Array Queries for multiply, replacements and product
- Mean of range in array
- Print modified array after executing the commands of addition and subtraction
- Queries on probability of even or odd number in given ranges
- Products of ranges in an array
- Count Primes in Ranges
- Binary array after M range toggle operations
- Merge Overlapping Intervals
- Check if any two intervals overlap among a given set of intervals
- Sum of Interval and Update with Number of Divisors
- Print modified array after multiple array range increment operations
- Queries on XOR of greatest odd divisor of the range
- Queries for number of distinct elements in a subarray
- Count and Toggle Queries on a Binary Array
- Min-Max Range Queries in Array
Quick Links :


.png)