Topic: Hashing Problem / Level: advanced

Problem: Given an array of integers, find the smallest subarray that contains all distinct elements using hashing.

Run the code to see the output here...