Skip to content

Commit 8784aea

Browse files
authored
docs: add a description of the solution to lc problem: No.0884 (doocs#697)
No.0884.Uncommon Words from Two Sentences
1 parent f55b3b5 commit 8784aea

File tree

1 file changed

+4
-0
lines changed
  • solution/0800-0899/0884.Uncommon Words from Two Sentences

1 file changed

+4
-0
lines changed

solution/0800-0899/0884.Uncommon Words from Two Sentences/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646

4747
<!-- 这里可写通用的实现逻辑 -->
4848

49+
使用哈希表 `HashMap<String, Integer>` 记录字符串出现的次数,完成所有记录后遍历哈希表,找到出现次数为 1 的 `key`,存入数组当中并返回。
50+
51+
由于只关注出现 1 次的字符串,可以将 `value` 类型定为 `Boolean`。首次记录为 `true`,后续再出现则改为 `false`
52+
4953
<!-- tabs:start -->
5054

5155
### **Python3**

0 commit comments

Comments
 (0)