Minimum Length Subarray With At Least K Distinct Integers
CodingOnline AssessmentSoftware EngineerReported Jan, 2026
Company question banks are included with the Insider plan.
You are given an array of positive integers arr and an integer k.
A subarray is considered good if it contains at least k distinct integers.
Return the minimum possible length of a good...