File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
solution/1000-1099/1002.Find Common Characters Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class Solution {
93
93
}
94
94
List<String > ans = new ArrayList<> ();
95
95
for (int i = 0 ; i < 26 ; ++ i) {
96
- ans. addAll(Collections . nCopies(cnt[i], String . valueOf((char )(' a' + i))));
96
+ ans. addAll(Collections . nCopies(cnt[i], String . valueOf((char ) (' a' + i))));
97
97
}
98
98
return ans;
99
99
}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class Solution {
84
84
}
85
85
List<String > ans = new ArrayList<> ();
86
86
for (int i = 0 ; i < 26 ; ++ i) {
87
- ans. addAll(Collections . nCopies(cnt[i], String . valueOf((char )(' a' + i))));
87
+ ans. addAll(Collections . nCopies(cnt[i], String . valueOf((char ) (' a' + i))));
88
88
}
89
89
return ans;
90
90
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public List<String> commonChars(String[] words) {
13
13
}
14
14
List <String > ans = new ArrayList <>();
15
15
for (int i = 0 ; i < 26 ; ++i ) {
16
- ans .addAll (Collections .nCopies (cnt [i ], String .valueOf ((char )('a' + i ))));
16
+ ans .addAll (Collections .nCopies (cnt [i ], String .valueOf ((char ) ('a' + i ))));
17
17
}
18
18
return ans ;
19
19
}
You can’t perform that action at this time.
0 commit comments