<filename>893.groups-of-special-equivalent-strings.py<gh_stars>0
class Solution:
    def numSpecialEquivGroups(self, A: List[str]) -> int:
        return len({''.join(sorted(s[::2]) + sorted(s[1::2])) for s in A})

<filename>893.groups-of-special-equivalent-strings.py<gh_stars>0
class Solution:
    def numSpecialEquivGroups(self, A: List[str]) -> int:
        return len({''.join(sorted(s[::2]) + sorted(s[1::2])) for s in A})
