File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### 성능 요약
6
6
7
- 메모리: 64.8 MB, 시간: 26.83 ms
7
+ 메모리: 64.5 MB, 시간: 27.84 ms
8
8
9
9
### 구분
10
10
16
16
17
17
### 제출 일자
18
18
19
- 2024년 05월 24일 14:25:33
19
+ 2024년 05월 24일 14:33:31
20
20
21
21
### 문제 설명
22
22
Original file line number Diff line number Diff line change @@ -6,23 +6,23 @@ class Solution {
6
6
babblings.forEach {
7
7
var bab = it
8
8
9
- if (! it.checkingDuplicatedwords (canSay)) {
9
+ if (! it.checkingDuplicatedWords (canSay)) {
10
10
canSay.forEach { canSpeakWord ->
11
11
bab = bab.replace(canSpeakWord, " ★" )
12
12
}
13
13
14
- if (bab.replace( " ★" , " " ).isEmpty() ) answer++
14
+ if (bab.all{it.toString() == " ★" } ) answer++
15
15
}
16
16
}
17
17
18
18
return answer
19
19
}
20
20
21
- fun String.checkingDuplicatedwords (words : List <String >): Boolean {
21
+ fun String.checkingDuplicatedWords (words : List <String >): Boolean {
22
22
words.forEach {
23
23
keyword ->
24
24
if (this .contains(keyword + keyword)) return true
25
-
25
+
26
26
}
27
27
28
28
return false
You can’t perform that action at this time.
0 commit comments