Topic: Array Problem / Level: intermediate

Problem: Find the smallest subarray with at least two distinct elements using a sliding window.

Run the code to see the output here...