

😎풀이
- 안정적인 산은 가장 인접한 이전 산이 임계 높이를 초과할 경우 인정됨
- 안정적인 산의 인덱스 목록 반환
function stableMountains(height: number[], threshold: number): number[] {
const stable = []
for(let i = 1; i < height.length; i++) {
const prev = height[i - 1]
if(prev > threshold) stable.push(i)
}
return stable
};