Skip to content

Commit

Permalink
Merge pull request youngyangyang04#658 from GHumorBS/master
Browse files Browse the repository at this point in the history
Update 1002.查找常用字符.md
  • Loading branch information
youngyangyang04 authored Aug 26, 2021
2 parents dd261c0 + 5b26e13 commit 4bbd571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/1002.查找常用字符.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class Solution:
# 统计除第一个字符串外字符的出现频率
for i in range(1, len(words)):
hashOtherStr = [0] * 26
for j in range(len(words[0])):
for j in range(len(words[i])):
hashOtherStr[ord(words[i][j]) - ord('a')] += 1
# 更新hash,保证hash里统计26个字符在所有字符串里出现的最小次数
for k in range(26):
Expand Down

0 comments on commit 4bbd571

Please sign in to comment.