1 parent 1fa60fe commit 8354a19Copy full SHA for 8354a19
2 files changed
프로그래머스/1/12954. x만큼 간격이 있는 n개의 숫자/README.md
@@ -1,10 +1,10 @@
1
# [level 1] x만큼 간격이 있는 n개의 숫자 - 12954
2
3
-[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12954)
+[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/12954?language=java)
4
5
### 성능 요약
6
7
-메모리: 10.2 MB, 시간: 0.07 ms
+메모리: 74.6 MB, 시간: 0.03 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2024년 06월 23일 20:31:12
+2026년 06월 21일 15:14:15
20
21
### 문제 설명
22
프로그래머스/1/12954. x만큼 간격이 있는 n개의 숫자/x만큼 간격이 있는 n개의 숫자.java
@@ -0,0 +1,8 @@
+class Solution {
+ public long[] solution(int x, int n) {
+ long[] answer = new long[n];
+ int idx = 0;
+ for (int i = 0; i < n; i++) answer[i] = (long) x * (i+1);
+ return answer;
+ }
+}
0 commit comments