2085. 统计出现过一次的公共字符串
2085. 统计出现过一次的公共字符串
- 难度:
easy
- 原始链接: https://leetcode.cn/problems/count-common-words-with-one-occurrence
- 标签:
哈希
解法一: 双哈希
1 | func countWords(words1 []string, words2 []string) int { |
解法二: 单哈希
1 | func countWords(words1 []string, words2 []string) int { |