Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×
Similar Problem to CF Round 1054 (Div. 3) E 
Difference between en1 and en2, changed 6 character(s)
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 :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Min_27 2025-09-25 20:24:44 6 Tiny change: 'with [l,r]\nl,r to the Le' -> 'with [l,r] to the Le'
en1 English Min_27 2025-09-25 20:23:15 490 Initial revision (published)