242. Valid Anagram

242. Valid Anagram

题目:
https://leetcode.com/problems/valid-anagram/

难度 : Easy

对Python来说,又是一块蛋糕,不本地测试
就是这么自信

class Solution(object):
    def isAnagram(self, s, t):
        """
        :type s: str
        :type t: str
        :rtype: bool
        """
        sList = sorted(list(s))
        tList = sorted(list(t))
        return sList == tList
            
    原文作者:oo上海
    原文地址: https://www.jianshu.com/p/8bea1d9752f9
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞