algorithms.tutorialhorizon.com
Sliding Window Problem (Track the maximum of each subarray of size k) | Algorithms
Given an array and integer k, write an algorithm to find the maximum element in each subarray of size k.