Skip to content

Commit c17b817

Browse files
authored
fix: fix bug word2_counter -> word1_counter (#24)
1 parent d04d6df commit c17b817

File tree

1 file changed

+1
-1
lines changed
  • src/hashmap_set/determine_if_two_strings_are_close

1 file changed

+1
-1
lines changed

src/hashmap_set/determine_if_two_strings_are_close/solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ def closeStrings(self, word1: str, word2: str) -> bool:
88

99
return (
1010
sorted(word1_counter.values()) == sorted(word2_counter.values())
11-
and word2_counter.keys() == word2_counter.keys()
11+
and word1_counter.keys() == word2_counter.keys()
1212
)

0 commit comments

Comments
 (0)