Topic: Two Pointer Problem / Level: beginner

Problem: Find the smallest subarray that contains all distinct elements of another array using two pointers.

Run the code to see the output here...