Problem 1852 · Medium

Distinct Numbers in Each Subarray

Count distinct values in each fixed-length subarray.

Open the interactive visualisation