Problem 3254 · Medium

Find the Power of K-Size Subarrays I

Check each length-k window for a run of consecutive values, and report its maximum when the run holds, or -1 otherwise.

Open the interactive visualisation