Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution:
- def numSpecialEquivGroups(self, A: List[str]) -> int:
- return len({tuple(sorted(s[::2]) + sorted(s[1::2])) for s in A})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement