Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
isaiahliu committed Dec 18, 2024
1 parent 62180f3 commit ea753ad
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/kotlin/p32xx/Problem3285.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package p32xx

import util.expect

fun main() {
class Solution {
fun stableMountains(height: IntArray, threshold: Int): List<Int> {
return (1 until height.size).filter { height[it - 1] > threshold }
}
}

expect {
Solution().stableMountains(
intArrayOf(), 5
)
}
}

0 comments on commit ea753ad

Please sign in to comment.