Unique Range Query

Правка en2, от mr_warlock, 2025-02-09 00:31:06

I am stuck on this following problem:

Statement:

Given an array of size n and have to do q queries.

Query are---

Type-1) Update index k with value v.

Type-2) Print the unique count in range [L..R] which are less than v;

Constraints:

1<=n,q<=100000
1<=v<=1000000000
1<=k<=n
1<=L<=R<=n

Thanks for reading the problem. It will be really helpful if you can give me a solution.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский mr_warlock 2025-02-09 00:31:06 0 (published)
en1 Английский mr_warlock 2025-02-09 00:30:05 434 Initial revision (saved to drafts)