Skip to content

Commit 8354a19

Browse files
committed
[level 1] Title: x만큼 간격이 있는 n개의 숫자, Time: 0.03 ms, Memory: 74.6 MB -BaekjoonHub
1 parent 1fa60fe commit 8354a19

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

프로그래머스/1/12954. x만큼 간격이 있는 n개의 숫자/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 1] x만큼 간격이 있는 n개의 숫자 - 12954
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12954)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12954?language=java)
44

55
### 성능 요약
66

7-
메모리: 10.2 MB, 시간: 0.07 ms
7+
메모리: 74.6 MB, 시간: 0.03 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2024년 06월 23일 20:31:12
19+
2026년 06월 21일 15:14:15
2020

2121
### 문제 설명
2222

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

0 commit comments

Comments
 (0)