Closed Juro221 closed 3 years ago
We count distinct elements in the first window of size K and then we do process called window sliding where we slide our window one element to the right and we update our unique elements. Time complexity : O(N)
We count distinct elements in the first window of size K and then we do process called window sliding where we slide our window one element to the right and we update our unique elements. Time complexity : O(N)