[Solved] Subarray With Elements Greater Than Varying Threshold LeetCode Contest
![[Solved] Subarray With Elements Greater Than Varying Threshold LeetCode Contest [Solved] Subarray With Elements Greater Than Varying Threshold LeetCode Contest](https://realcoder.techss24.com/wp-content/uploads/2022/07/Solved-Subarray-With-Elements-Greater-Than-Varying-Threshold-LeetCode-Contest.png)
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…