mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
更新 1002.查找常用字符.md C语言版本注释
This commit is contained in:
@ -333,6 +333,7 @@ func commonChars(_ words: [String]) -> [String] {
|
|||||||
|
|
||||||
C:
|
C:
|
||||||
```c
|
```c
|
||||||
|
//若两个哈希表定义为char数组(每个单词的最大长度不会超过100,因此可以用char表示),可以提高时间和空间效率
|
||||||
void updateHashTable(int* hashTableOne, int* hashTableTwo) {
|
void updateHashTable(int* hashTableOne, int* hashTableTwo) {
|
||||||
int i;
|
int i;
|
||||||
for(i = 0; i < 26; i++) {
|
for(i = 0; i < 26; i++) {
|
||||||
|
Reference in New Issue
Block a user