## Queries for Number of Distinct Elements in a Subarray

We have given an array of integer and a number of queries and we have to find out the number of all the distinct elements we have within the given range, the query consists of two numbers left and right, this is the given range, with this given range we …

Read moreQueries for Number of Distinct Elements in a Subarray