[Algorithm] 머쓱이보다 키 큰 사람

yeah·2023년 10월 25일

Algorithm

목록 보기
26/27
post-thumbnail

Mission.

작성한 답

function solution(array, height) {
    let count = 0;
    for (let i = 0; i < array.length; i++) {
        if (array[i] > height) {
            count++;
        }
    }
    return count;
}

참고 자료

https://school.programmers.co.kr/learn/courses/30/lessons/120585

profile
기록과 회고

0개의 댓글