We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10f1d00 commit 023381dCopy full SHA for 023381d
LiiNi-coder/202512/14 PGM 전화번호 목록.md
@@ -0,0 +1,19 @@
1
+```java
2
+import java.util.*;
3
+
4
+class Solution {
5
+ public boolean solution(String[] phone_book) {
6
7
+ Arrays.sort(phone_book);
8
+ for(int i = 0; i < phone_book.length - 1; i++){
9
+ String now = phone_book[i];
10
+ String next = phone_book[i + 1];
11
+ if(next.startsWith(now)){
12
+ return false;
13
+ }
14
15
+ return true;
16
17
+}
18
19
+```
0 commit comments