[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-10-03 15:49:37 +00:00
parent 42d2c138ba
commit f39e16846b

View File

@ -27,7 +27,7 @@ def pairs_with_sum(arr: list, req_sum: int) -> int:
>>> pairs_with_sum([1,7,6,2,5,4,3,1,9,8],7)
4
"""
d:dict = {}
d: dict = {}
for i in arr:
if i in d:
d[i] += 1