머쓱이보다 키 큰사람

김세호·2022년 12월 3일
0

내 풀이

class Solution {
    public int solution(int[] array, int height) {
        int answer = 0;
        for(int i = 0 ; i < array.length ; i++  ){
            if(array[i]>height){
                ++answer;
            }
        }
        return answer;
    }
}

0개의 댓글