Skip to content

Commit 2f845b7

Browse files
committed
[level 1] Title: 두 개 뽑아서 더하기, Time: 2.57 ms, Memory: 88.9 MB -BaekjoonHub
1 parent 7c44709 commit 2f845b7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

프로그래머스/1/68644. 두 개 뽑아서 더하기/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### 성능 요약
66

7-
메모리: 82.7 MB, 시간: 1.00 ms
7+
메모리: 88.9 MB, 시간: 2.57 ms
88

99
### 구분
1010

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

1717
### 제출 일자
1818

19-
2025년 05월 05일 18:28:46
19+
2025년 05월 05일 18:32:31
2020

2121
### 문제 설명
2222

프로그래머스/1/68644. 두 개 뽑아서 더하기/두 개 뽑아서 더하기.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class Solution {
5-
static HashSet<Integer> set = new HashSet<>();
5+
static HashSet<Integer> set = new HashSet();
66

77
public Integer[] solution(int[] numbers) {
88

@@ -12,10 +12,8 @@ public Integer[] solution(int[] numbers) {
1212
}
1313
}
1414

15-
Integer[] arr = set.toArray(new Integer[0]);
15+
Integer[] arr = set.toArray(Integer[]::new);
1616
Arrays.sort(arr);
1717
return arr;
18-
// int[] answer = {};
19-
// return answer;
2018
}
2119
}

0 commit comments

Comments
 (0)