Question d’entretien chez Qualcomm

Smallest subarray with k distinct integers