Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita84a51d

Browse files
refactor 1002
1 parentea8d5ff commita84a51d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

‎src/main/java/com/fishercoder/solutions/_1002.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,6 @@
33
importjava.util.ArrayList;
44
importjava.util.List;
55

6-
/**
7-
* 1002. Find Common Characters
8-
*
9-
* Given an array A of strings made only from lowercase letters,
10-
* return a list of all characters that show up in all strings within the list (including duplicates).
11-
* For example, if a character occurs 3 times in all strings but not 4 times, you need to include that character three times in the final answer.
12-
*
13-
* You may return the answer in any order.
14-
*
15-
* Example 1:
16-
* Input: ["bella","label","roller"]
17-
* Output: ["e","l","l"]
18-
*
19-
* Example 2:
20-
* Input: ["cool","lock","cook"]
21-
* Output: ["c","o"]
22-
*
23-
* Note:
24-
* 1 <= A.length <= 100
25-
* 1 <= A[i].length <= 100
26-
* A[i][j] is a lowercase letter
27-
*/
286
publicclass_1002 {
297
publicstaticclassSolution1 {
308
publicList<String>commonChars(String[]A) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp