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

박예림·2023년 5월 25일
0

코테

목록 보기
107/132

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;
    }
}
profile
응애 나 아기개발자

0개의 댓글