머쓱이보다 키 큰 사람

김토리·2024년 2월 5일

알고리즘

목록 보기
11/27

#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

// array_len은 배열 array의 길이입니다.
int solution(int array[], size_t array_len, int height) {
    int answer = 0;
    
    for(int i= 0; i< array_len ;i++){
        if(array[i]>height){
            answer++;
        }
    }
    return answer;
}

"반복문 안에 조건문을 적절히 활용할 수 있는가" 에 대한 문제

profile
웹 개발하며 데이터 분석, AI 공부하는 jinveloper

0개의 댓글