Problem 2334 · Hard

Subarray With Elements Greater Than Varying Threshold

Find any subarray length k whose every element is greater than threshold divided by k.

Open the interactive visualisation