https://school.programmers.co.kr/learn/courses/30/lessons/120585
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
class Solution {
public int solution(int[] array, int height) {
int answer = 0;
for(int num : array){
if(height < num){
answer++;
}
}
return answer;
}
}
'알고리즘' 카테고리의 다른 글
프로그래머스 팩토리얼 (JAVA) (0) | 2022.11.28 |
---|---|
프로그래머스 인덱스 바꾸기 (JAVA) (0) | 2022.11.27 |
프로그래머스 짝수 홀수 개수 (JAVA) (0) | 2022.11.24 |
프로그래머스 짝수는 싫어요 (JAVA) (0) | 2022.11.23 |
프로그래머스 중복된 문자 제거 (JAVA) (0) | 2022.11.22 |