1002. 查找常用字符, 更新题目描述

This commit is contained in:
yqq
2021-09-27 16:08:33 +08:00
parent a3a7568e41
commit 24c515282a

View File

@ -12,18 +12,24 @@
[力扣题目链接](https://leetcode-cn.com/problems/find-common-characters/) [力扣题目链接](https://leetcode-cn.com/problems/find-common-characters/)
定仅有小写字母组成的字符串数组 A返回列表中的每个字符串中都显示的全部字符(包括重复字符)组成的列表。例如,如果一个字符在每个字符串中出现 3 次,但不是 4 次,则需要在最终答案中包含该字符 3 次 你一个字符串数组 words ,请你找出所有在 words 的每个字符串中都出现的共用字符( 包括重复字符),并以数组形式返回。你可以按 任意顺序 返回答案
你可以按任意顺序返回答案。 示例 1
【示例一】 输入words = ["bella","label","roller"]
输入:["bella","label","roller"]
输出:["e","l","l"] 输出:["e","l","l"]
示例 2
【示例二】 输入words = ["cool","lock","cook"]
输入:["cool","lock","cook"]
输出:["c","o"] 输出:["c","o"]
提示:
1 <= words.length <= 100
1 <= words[i].length <= 100
words[i] 由小写英文字母组成
# 思路 # 思路