DSA Key Problems

Subarrays with K Different Integers

Given an integer array and k, return the number of contiguous subarrays containing exactly k distinct values.