Topic: Array Problem / Level: intermediate

Problem: Find the longest subarray where all elements are distinct, using a sliding window approach.

Run the code to see the output here...