Topic: Two Pointer Problem / Level: beginner

Problem: Count the number of distinct elements in every subarray of size k using two pointers.

Run the code to see the output here...