Perl Weekly Challenge 73: Min Sliding Window and Smallest Neighbor
These are some answers to the Week 73 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a few days from now (on Aug. 16, 2020). This blog post offers some solutions to this challenge, please don’t read on if you intend to complete the challenge on your own.
Task 1: Min Sliding Window
You are given an array of integers @A and sliding window size $S.
Write a script to create an array of min from each sliding window.
Example: