Skip to content

Grind 75 - Valid Anagram

Posted on:July 21, 2023 at 02:10 PM at 1 min read

Solution for Valid Anagram problem which is a part of Grind 75 list.

class Solution:
    def isAnagram(self, s: str, t: str) -> bool:
        return sorted(s) == sorted(t)

Comments