Minimum Length Subarray With At Least K Distinct Integers

Problem overview from a real Uber interview:

Process an array of up to 100,000 positive integers using a two-pointer sliding window and frequency map. Return the result or -1. Asked at Uber.

Check more interview questions and experiences about Uber

Please log in to view interview details