mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-07 15:45:40 +08:00
Merge pull request #2717 from qiuzan2001/master
更新了0383.赎金信的python版本二13行
This commit is contained in:
@ -176,7 +176,7 @@ class Solution:
|
|||||||
|
|
||||||
for x in ransomNote:
|
for x in ransomNote:
|
||||||
value = hashmap.get(x)
|
value = hashmap.get(x)
|
||||||
if not value or not value:
|
if not value:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
hashmap[x] -= 1
|
hashmap[x] -= 1
|
||||||
|
Reference in New Issue
Block a user