can anyone suggest how to solve the problem subarray distinct values from cses problemset?
here is link to the problem https://cses.fi/problemset/task/2428
Repovive Standard Round 3 Solution Discussion (with Anirudh)
Codeforces Edu Round 190 (Div 2) — Solution Discussion