I noticed that [2149E — Subarrays with Exactly K](https://codeforces.me/contest/2149/problem/E) from the just-finished contest is similar with [LeetCode 992 — Subarrays with K Different Integers](https://leetcode.com/problems/subarrays-with-k-different-integers)↵
↵
The main twist here is that Codeforces adds the extra condition with [l,r]↵
l,r to the LeetCode version.↵
↵
if you're upsolving E, I'd recommend trying LC 992 first :)
↵
The main twist here is that Codeforces adds the extra condition with [l,r]
l,r
↵
if you're upsolving E, I'd recommend trying LC 992 first :)



