Topic: Two Pointer Problem / Level: intermediate

Problem: Given an unsorted array, find the length of the longest contiguous subarray with distinct elements using two pointers.

Run the code to see the output here...