Skip to content

Commit fa32063

Browse files
authored
solve: 코딩테스트 문제 풀이 - 33일차
1 parent 4dbca84 commit fa32063

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class Solution {
2+
public long[] solution(int x, int n) {
3+
long[] answer = new long[n];
4+
for (int i=0; i<n; i++) {
5+
answer[i] = (long)x * (i + 1);
6+
}
7+
return answer;
8+
}
9+
}

0 commit comments

Comments
 (0)