We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26fee1a commit 24dc3c1Copy full SHA for 24dc3c1
프로그래머스/2/42577. 전화번호 목록/README.md
@@ -4,7 +4,7 @@
4
5
### 성능 요약
6
7
-메모리: 97.9 MB, 시간: 331.14 ms
+메모리: 98.9 MB, 시간: 364.95 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2026년 02월 06일 14:56:26
+2026년 02월 11일 16:15:37
20
21
### 문제 설명
22
프로그래머스/2/42577. 전화번호 목록/전화번호 목록.java
@@ -5,9 +5,7 @@ public boolean solution(String[] phone_book) {
Arrays.sort(phone_book);
for (int i = 0 ; i < phone_book.length - 1; i++) {
- String currentNumber = phone_book[i];
-
- if (phone_book[i + 1].startsWith(currentNumber)) {
+ if (phone_book[i + 1].startsWith(phone_book[i])) {
11
return false;
12
}
13
0 commit comments