From 815083bdd8f9098353f22050ac7698d6a48f99ec Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 10 Jul 2026 05:15:21 -0600 Subject: [PATCH] adding udpates --- .../google_top_exercises/round_1/14_valid_anagram.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/my_project/interviews/google_top_exercises/round_1/14_valid_anagram.py diff --git a/src/my_project/interviews/google_top_exercises/round_1/14_valid_anagram.py b/src/my_project/interviews/google_top_exercises/round_1/14_valid_anagram.py new file mode 100644 index 00000000..4cee3107 --- /dev/null +++ b/src/my_project/interviews/google_top_exercises/round_1/14_valid_anagram.py @@ -0,0 +1,12 @@ +from collections import defaultdict + +class Solution: + def isAnagram(self, s: str, t: str) -> bool: + + lst_s = [c for c in s] + lst_t = [c for c in t] + + lst_s.sort() + lst_t.sort() + + return lst_s == lst_t \ No newline at end of file