MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / isAnagram

Method isAnagram

String/ValidAnagram.py:37–45  ·  view source on GitHub ↗

:type s: str :type t: str :rtype: bool

(self, s, t)

Source from the content-addressed store, hash-verified

35"""
36class Solution(object):
37 def isAnagram(self, s, t):
38 """
39 :type s: str
40 :type t: str
41 :rtype: bool
42 """
43 if sorted(s) == sorted(t):
44 return True
45 return False
46

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected