Exactly k times = At Most k times - At Most k - 1 times.
k
k - 1
930. Binary Subarrays With Sum (Medium)
992. Subarrays with K Different Integers (Hard)
1248. Count Number of Nice Subarrays (Medium)
Last updated 3 years ago