Given an array of integers, find the maximum value in all contiguous subarrays of size K. Additionally, given a string, count all substrings that contain at most K distinct characters.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.