Topic: Two Pointer Problem / Level: intermediate

Problem: Find the longest contiguous subarray with at most two distinct values using two pointers.

Run the code to see the output here...