Topic: Two Pointer Problem / Level: beginner

Problem: Find the smallest subarray with at least k distinct elements using two pointers.

Run the code to see the output here...