We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81b65b5 commit 9aad224Copy full SHA for 9aad224
2 files changed
프로그래머스/2/42577. 전화번호 목록/README.md
@@ -1,10 +1,10 @@
1
# [level 2] 전화번호 목록 - 42577
2
3
-[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/42577)
+[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/42577?language=java)
4
5
### 성능 요약
6
7
-메모리: 29.9 MB, 시간: 108.24 ms
+메모리: 103 MB, 시간: 173.65 ms
8
9
### 구분
10
@@ -16,7 +16,7 @@
16
17
### 제출 일자
18
19
-2025년 04월 14일 18:43:10
+2026년 05월 08일 19:09:44
20
21
### 문제 설명
22
프로그래머스/2/42577. 전화번호 목록/전화번호 목록.java
@@ -0,0 +1,14 @@
+import java.util.*;
+
+class Solution {
+ public boolean solution(String[] phone_book) {
+ Arrays.sort(phone_book);
+ for (int i = 0;i < phone_book.length-1; i++){
+ if (phone_book[i+1].startsWith(phone_book[i])){
+ return false;
+ }
11
12
+ return true;
13
14
+}
0 commit comments