Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Start with a window of size K and test its average against the threshold.
Keep moving the window by one element maintaining its size k until you cover the whole array. Count the number of windows that have an average greater than or equal to the threshold.