프로그래머스(코딩 테스트)/Lv.0
머쓱이보다 키 큰 사람
걍가영
2024. 10. 15. 16:33
// javascript
const solution = (array, height) => {
return array.filter(friendHeight => friendHeight > height).length;
}
// typescript
const solution = (array:number[], height:number):number => {
return array.filter(friendHeight => friendHeight > height).length;
}