i was trying to solve [Distinct Values Queries](https://cses.fi/problemset/task/1734) using a Fenwick tree↵
i read [this comment](https://codeforces.net/blog/entry/77128?#comment-619998) on how to solve it using A fenwick tree/segment tree but i didn't understand it very well ↵
so i was asking for an explanation of the solution ↵
↵
or any other solution using a **Fenwick Tree**↵
↵
thanks in advance
i read [this comment](https://codeforces.net/blog/entry/77128?#comment-619998) on how to solve it using A fenwick tree/segment tree but i didn't understand it very well ↵
so i was asking for an explanation of the solution ↵
↵
or any other solution using a **Fenwick Tree**↵
↵
thanks in advance