LeetCode 242. Valid Anagram (Python版)
Given two strings s and t , write a function to determine if t is an anagram of s.
Example 1:
Input: s = "anagram", t = "nagaram"
Output: true
Example 2:
Input: s = “rat”, t = “car”
Output: false
class Solution:
def isAnagram(self, s:str, t:str) -&g
原创
2020-11-22 11:07:38 ·
308 阅读 ·
0 评论