x만큼 간격이 있는 n개의 숫자1 [프로그래머스] x만큼 간격이 있는 n개의 숫자 class Solution { public long[] solution(int x, int n) { long[] answer = new long[n]; if(x==0){ return answer; } for(int i=1; i 2022. 11. 28. 이전 1 다음