From 10b4b162b4ea624fbe39b936f0ebff4533e078d9 Mon Sep 17 00:00:00 2001 From: AditSoni Date: Sat, 10 Oct 2020 20:19:45 +0530 Subject: [PATCH] Added code for 242 Valid Anagram --- LeetCode/0242_Valid_anagrams.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 LeetCode/0242_Valid_anagrams.py diff --git a/LeetCode/0242_Valid_anagrams.py b/LeetCode/0242_Valid_anagrams.py new file mode 100644 index 0000000..35a1d99 --- /dev/null +++ b/LeetCode/0242_Valid_anagrams.py @@ -0,0 +1,4 @@ +class Solution: + def isAnagram(self, s: str, t: str) -> bool: + + return (sorted(s) == sorted(t)) \ No newline at end of file