๐ก ์ง์ ํผ ์ฝ๋
class Solution {
public int[] solution(int start_num, int end_num) {
int num = (end_num + 1) - start_num ;
int[] answer = new int [num];
int j = start_num;
for (int i =0; i< num; i++){
if (j <= end_num) {
answer[i] = j;
j++;
}
}
return answer;
}
}