Tap here to switch tabs
Problem
Submissions

Problem: Find Common Characters

med
30 min
Try to solve the Find Common Characters problem.

Statement

Given an array of strings words, return an array containing every character that appears in each string in words, including duplicates. If a character occurs multiple times in all strings, include it in the result that many times. The returned characters may be in any order.

Constraints:

  • 1≤1 \leq words.length ≤100\leq 100

  • 1≤1 \leq words[i].length ≤100\leq 100

  • words[i] consists of lowercase English letters.

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Find Common Characters

med
30 min
Try to solve the Find Common Characters problem.

Statement

Given an array of strings words, return an array containing every character that appears in each string in words, including duplicates. If a character occurs multiple times in all strings, include it in the result that many times. The returned characters may be in any order.

Constraints:

  • 1≤1 \leq words.length ≤100\leq 100

  • 1≤1 \leq words[i].length ≤100\leq 100

  • words[i] consists of lowercase English letters.