본문 바로가기
Beakjoon&프로그래머스/Java

[프로그래머스/Java] 머쓱이보다 키 큰 사람

by 현장 2025. 2. 17.

-Code

import java.util.Arrays;

class Solution {
    public int solution(int[] array, int height) {
        return Arrays.stream(array).filter(el -> el > height).toArray().length;
    }
}