Problem 3255 · Medium

Find the Power of K-Size Subarrays II

Track the length of the current run of consecutive rising values as you scan once, and read each window power from that run.

Open the interactive visualisation