카운트 다운

gotcha!!·2024년 1월 10일
0

코딩테스트

목록 보기
31/36

문제링크

import java.util.*;

class Solution {
    public List solution(int start, int end_num) {
        List<Integer> answer = new ArrayList<>();
        for(int i = 0; i< (start - end_num) + 1; i++){
            answer.add(start-i);
        }
        
        return answer;
    }
}
profile
ha lee :)

0개의 댓글