We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c44709 commit 2f845b7Copy full SHA for 2f845b7
프로그래머스/1/68644. 두 개 뽑아서 더하기/README.md
@@ -4,7 +4,7 @@
4
5
### 성능 요약
6
7
-메모리: 82.7 MB, 시간: 1.00 ms
+메모리: 88.9 MB, 시간: 2.57 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2025년 05월 05일 18:28:46
+2025년 05월 05일 18:32:31
20
21
### 문제 설명
22
프로그래머스/1/68644. 두 개 뽑아서 더하기/두 개 뽑아서 더하기.java
@@ -2,7 +2,7 @@
2
3
class Solution {
- static HashSet<Integer> set = new HashSet<>();
+ static HashSet<Integer> set = new HashSet();
public Integer[] solution(int[] numbers) {
@@ -12,10 +12,8 @@ public Integer[] solution(int[] numbers) {
12
}
13
14
15
- Integer[] arr = set.toArray(new Integer[0]);
+ Integer[] arr = set.toArray(Integer[]::new);
Arrays.sort(arr);
return arr;
- // int[] answer = {};
- // return answer;
0 commit comments