From 747617f3eb6e164beb8a3729d25c717192133023 Mon Sep 17 00:00:00 2001 From: MaximSmolskiy Date: Mon, 1 Nov 2021 00:31:55 +0300 Subject: [PATCH 1/2] Test From 3a8015614b1d47ad0c4b270ab0e10b5bd4bdfd71 Mon Sep 17 00:00:00 2001 From: MaximSmolskiy Date: Mon, 1 Nov 2021 00:42:08 +0300 Subject: [PATCH 2/2] Fix --- strings/check_anagrams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings/check_anagrams.py b/strings/check_anagrams.py index 938bf4c2abee..d1f4dd3a9e15 100644 --- a/strings/check_anagrams.py +++ b/strings/check_anagrams.py @@ -29,7 +29,7 @@ def check_anagrams(first_str: str, second_str: str) -> bool: return False # Default values for count should be 0 - count = defaultdict(int) + count: dict = defaultdict(int) # For each character in input strings, # increment count in the corresponding