[프로그래머스] 카운트 다운

Seah Lee·2023년 7월 5일
0

프로그래머스

목록 보기
55/57

class Solution {
    public int[] solution(int start, int end) {
        int[] answer = new int[start-end+1];
        for(int i=0;i<answer.length;i++){
            answer[i]=start-i;
        }
        return answer;
    }
}

easy ~

profile
성장하는 개발자

0개의 댓글