Class Solution
java.lang.Object
g1001_1100.s1002_find_common_characters.Solution
1002 - Find Common Characters.
Easy
Given a string array words
, return an array of all characters that show up in all strings within the words
(including duplicates). You may return the answer in any order.
Example 1:
Input: words = [βbellaβ,βlabelβ,βrollerβ]
Output: [βeβ,βlβ,βlβ]
Example 2:
Input: words = [βcoolβ,βlockβ,βcookβ]
Output: [βcβ,βoβ]
Constraints:
1 <= words.length <= 100
1 <= words[i].length <= 100
words[i]
consists of lowercase English letters.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Solution
public Solution()
-
-
Method Details
-
commonChars
-