#3285
Find Indices of Stable Mountains
newbie · 130 · lc easy +13 · 86.8% accepted · 104 likes · top 98%
Description
You are given integer array height and integer threshold. Mountain i (for i > 0) is stable if height[i - 1] > threshold. Mountain 0 is never stable. Return the indices of all stable mountains.
Code
1
2
3