[Solved] Subarray With Elements Greater Than Varying Threshold LeetCode Contest
Subarray With Elements Greater Than Varying Threshold: You are given an integer array nums and an integer threshold. Find any subarray of nums of length k such that every element in the subarray is greater than threshold / k. Return the size of any such subarray. If there is no such subarray, return -1. A subarray is a contiguous non-empty…