3285. Find Indices of Stable Mountains
There are
n
mountains in a row, and each mountain has a height. You are given an integer arrayheight
whereheight[i]
represents the height of mountaini
, and an integerthreshold
.A mountain is called stable if the mountain just before it (if it exists) has a height strictly greater than
threshold
. Note that mountain 0 is not stable.Return an array containing the indices of all stable mountains in any order.
1 | package main |