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: trueExample 2:Input: s = “rat”, t = “car”Output: falseclass Solution: def isAnagram(self, s:str, t:str) -&g
原创
2020-11-22 11:07:38 ·
229 阅读 ·
0 评论