Skip to content

Commit

Permalink
1002. 查找常用字符, 更新题目描述
Browse files Browse the repository at this point in the history
  • Loading branch information
youngqqcn committed Sep 27, 2021
1 parent a3a7568 commit 24c5152
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions problems/1002.查找常用字符.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@

[力扣题目链接](https://leetcode-cn.com/problems/find-common-characters/)

给定仅有小写字母组成的字符串数组 A,返回列表中的每个字符串中都显示的全部字符(包括重复字符)组成的列表。例如,如果一个字符在每个字符串中出现 3 次,但不是 4 次,则需要在最终答案中包含该字符 3 次
给你一个字符串数组 words ,请你找出所有在 words 的每个字符串中都出现的共用字符( 包括重复字符),并以数组形式返回。你可以按 任意顺序 返回答案

你可以按任意顺序返回答案。
示例 1:

【示例一】
输入:["bella","label","roller"]
输入:words = ["bella","label","roller"]
输出:["e","l","l"]
示例 2:

【示例二】
输入:["cool","lock","cook"]
输入:words = ["cool","lock","cook"]
输出:["c","o"]

提示:

1 <= words.length <= 100
1 <= words[i].length <= 100
words[i] 由小写英文字母组成



# 思路

Expand Down

0 comments on commit 24c5152

Please sign in to comment.