3285_找到稳定山的下标

func stableMountains(height []int, threshold int) []int {
    
}

func stableMountains(height []int, threshold int) []int {
    ans := make([]int, 0)
    for i := 0; i < len(height)-1; i++ {
        if height[i] > threshold {
            ans = append(ans, i+1)
        }
    }
    return ans
}