We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8262846 commit 9a32faeCopy full SHA for 9a32fae
1 file changed
strings/LC242_isAnagram/main.py
@@ -1,5 +1,17 @@
1
# This is an exclusive problem only available in the Complete and Deluxe versions of this course.
2
# To learn more, visit https://kaeducation.com/lc-py.html
3
4
-class Solution:
+
5
+class Solution(object):
6
def isAnagram(self, s, t):
7
+ """
8
+ :type s: str
9
+ :type t: str
10
+ :rtype: bool
11
12
13
+ if len(s) != len(t):
14
+ return False
15
+ if sorted(s) == sorted(t):
16
+ return True
17
0 commit comments